Mail Archives: djgpp/1999/03/07/06:57:22
On Sat, 6 Mar 1999, 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).
Why couldn't you look at the instruction that faulted and use some
heuristics to find out the address, without accessing cr2?
For example, if the faulting instruction is "movl (%edx), %eax", then
the offending address is in EDX.
> 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'd guess, with enough hacking of CWSDPMI, anything's possible ;-).
- Raw text -