i386 page fault clobbers error code in trap frame
- From: Tijl Coosemans <tijl@xxxxxxxxxxx>
- Date: Sat, 29 Jul 2006 21:10:32 +0200
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
specifically).
Attachment:
pgpzJvtxZBLZQ.pgp
Description: PGP signature
- Follow-Ups:
- Re: i386 page fault clobbers error code in trap frame
- From: Kip Macy
- Re: i386 page fault clobbers error code in trap frame
- Prev by Date: Re: disklabel differences FreeBSD, DragonFly
- Next by Date: Re: i386 page fault clobbers error code in trap frame
- Previous by thread: fdescfs functional in 6.1?
- Next by thread: Re: i386 page fault clobbers error code in trap frame
- Index(es):