Some more 4xx exception fixes
Dan Malek
dan at mvista.com
Thu Sep 13 01:42:24 EST 2001
David Gibson wrote:
> The problem was that the DSI handler would not call do_page_fault()
> for zone protection faults which were writes
The real problem is the zone protection isn't set up properly
on the kernel space. The normal logic of the DSI will work
correctly without testing specifically for a zone protection error
if the zone is properly configured. I noticed this error the other
day while fixing the other MMU problems, but it wasn't detrimental
to simply making the kernel run, so I'm fixing it today.
> The wart is that the ISI handler passed SRR1 (i.e. saved MSR) to
> do_page_fault(), whereas the comment above do_page_fault() says that
> do_page_fault() should be passed 0 for instruction faults on 4xx.
I guess....this is left over from a common exception handler I
suppose. The only bit position tested is ESR_DST, which for the
last few years has always been reserved and zero in the MSR. This
is a larger problem on other processors, where we overload this
code into the fault handler with bits that do mean something......
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list