i386 page fault clobbers error code in trap frame

Tijl Coosemans tijl at ulyssis.org
Sat Jul 29 19:10:53 UTC 2006

I'm refering to the following two lines in sys/i386/i386/trap.c

/* kludge to pass faulting virtual address to sendsig */
frame->tf_err = eva;

Isn't there some other way to do this? Wouldn't the address still be 
available in %cr2 inside sendsig? Or could there have been other page 
faults by then?

The reason I'm asking this is that Wine wants to know the error code in 
case of a page fault (the No eXec bit (AMD) and the read/write bit 
-------------- 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/20060729/6334ac37/attachment.pgp

More information about the freebsd-hackers mailing list