Date: Sat, 29 Jul 2006 21:10:32 +0200 From: Tijl Coosemans <tijl@ulyssis.org> To: freebsd-hackers@freebsd.org Subject: i386 page fault clobbers error code in trap frame Message-ID: <200607292110.37733.tijl@ulyssis.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQBEy7KtdMR2xnarec8RAl9QAKCCc2Hqen6/xYDyqbXMdBu2sBlHjwCg0tQx LXotmZDebQV/s/nj3T4B+aM= =vxez -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607292110.37733.tijl>
