Mail Archives: djgpp-workers/2003/03/12/13:00:28
> Is there a safe way to get the value of the Control Registers
> (CR0-4) under CPL > 0?.
Not today. If there were a good reason I would consider adding something
to CWSDPMI to emulate it - but given the large number of DPMI providers
out there, I think this is a bad idea.
If you need these, why not just run under ring 0?
> Under Win-XP "movl %cr4,%eax" seems to be safe (i.e. doesn't crash),
> but return value is always 0.
So it's useless.
> Under plain DOS and CWSDMI it crashes.
> I could probably use a SIGILL handler, but try to avoid it.
If it never returns useful information under CPL > 0, don't do it?
- Raw text -