The 720/50 saga continues...
Quoted 8 lines
So, ls triggers a real alignment problem which is now, due to the fallthrouth to case 26, handled by the paging code...
As a temporary solution, i just copies the busybox from the installation disk (which does not suffer from the same problem) and linked it to ls, tar and sleep (being the userspace tools that trapped for me) which allowed me to get a mostly working system up and running...
Quoted 5 lines
Now going to fix the real problem, on how to decide in the case 18 handler if the trap is caused by a page fault or an alignment fault.
Cheers,
Jochen
I am probably very naive :-), but shouldn't it be possible to figure out, whether or not this is an unaligned access trap by just looking at the offending instruction and the address it is referencing? If, for example, it's a word load/store instruction and the address is not word-aligned, then we call handle_unaligned, otherwise - do_page_fault. The only (hopefully) problem arises if the load/store instruction generates BOTH page fault and unaligned access traps. I have no idea, what happens then, but probably one has to call do_page_fault first. If it's a not-so-often happening situation, we could get away just by reusing some of the existing code.
Best regards,
Jurij.
Hi Jurij,
Quoted 3 lines
I am probably very naive :-), but shouldn't it be possible to figure out, whether or not this is an unaligned access trap by just looking at the offending instruction and the address it is referencing?
Maybe i'm naive, but wouldn't it be easier to check if the page being addressed is in memory and if yes assume an assignment fault and if no assume a pgae fault? IMHO, this would even fix the problem of having a non-aligned access to a non-mapped address as the trap would first load the address into memory than repeat the access, cause a second trap which will be interpreted as a alignment trap the second time.
Cheers,
Jochen