| delorie.com/archives/browse.cgi | search |
| Message-ID: | <36E3919E.BC608111@eik.bme.hu> |
| Date: | Mon, 08 Mar 1999 10:00:15 +0100 |
| From: | "Dr. =?iso-8859-1?Q?Andr=E1s=20S=F3lyom?=" <solyom AT eik DOT bme DOT hu> |
| X-Mailer: | Mozilla 4.5 [en] (Win98; I) |
| X-Accept-Language: | en,hu |
| MIME-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: Getting cr2 in exception handler |
| References: | <36E1D56E DOT ABB127DE AT cartsys DOT com> |
| Reply-To: | djgpp AT delorie DOT com |
Nate Eldredge wrote:
> I have an application where I need to set up an exception handler for
> page faults and have access to the value of cr2 (linear address to which
> access faulted). But:
>
> * mov cr2 is a privileged instruction.
....
>
>
> So: Does anyone know of another way to find the value of cr2? I don't
> care about it working in anything but CWSDPMI.
I saw a VXD article on MSDN in which the example program just did what you
want: makes the value of cr2 accessible. Unfortunately I do not remember who
has written it. You should search on vxd and cr2 there.
Andras
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |