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
--nextPart10993165.DIXgWSgbTg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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 =3D eva; Isn't there some other way to do this? Wouldn't the address still be=20 available in %cr2 inside sendsig? Or could there have been other page=20 faults by then? The reason I'm asking this is that Wine wants to know the error code in=20 case of a page fault (the No eXec bit (AMD) and the read/write bit=20 specifically). --nextPart10993165.DIXgWSgbTg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQBEy7KtdMR2xnarec8RAl9QAKCCc2Hqen6/xYDyqbXMdBu2sBlHjwCg0tQx LXotmZDebQV/s/nj3T4B+aM= =vxez -----END PGP SIGNATURE----- --nextPart10993165.DIXgWSgbTg--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607292110.37733.tijl>