Matt Thomas
2014-09-05 17:19:46 UTC
On a data page fault or dtlb miss, the exception handler doesn't know why it failed. Was it protection fault? was it for a read or a write? On a bus error, it's even worse since you have no idea whatsoever what caused.
A symdrome register indicating why the fault happened would be nice (for l.sys, the syscall number could be placed in it). Otherwise the kernel is forced to read the instruction to determine the fault.
A symdrome register indicating why the fault happened would be nice (for l.sys, the syscall number could be placed in it). Otherwise the kernel is forced to read the instruction to determine the fault.