i386 page fault clobbers error code in trap frame

Tijl Coosemans tijl at ulyssis.org
Sun Jul 30 20:03:11 UTC 2006


On Sunday 30 July 2006 21:30, Kip Macy wrote:
> > si_addr doesn't contain the faulting pc, it contains the address
> > that
>
> So either the comment is wrong, or that is a technically incorrect
> kludge. However, given that a number of the other fields are not
> filled out at all, the real objective should be to keep applications
> working.

Well, the comment is correct except in case of a page fault. But this is 
different from stable. In stable si_addr is a copy of tf_err, which, 
because of the kludge, holds the fault address in case of a page 
fault... I'm glad to see this code has been cleaned up.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060730/341cd662/attachment.pgp


More information about the freebsd-hackers mailing list