Mail Archives: djgpp-workers/2003/04/29/11:43:45
> What happens with a previously installed SIGILL handler?
> Should maybe save retval from signal() and restore it.
I've thought about it and decided I'll only protect the
first call, and if it is OK then I'll remove the handler.
If it's not OK, then we will just alway use the clock
tic (or the buggy PIT timer).
> And what about the case where RDTSC is present but
> disabled (CR4 bit 3 = 1). Maybe protect with a SIGSEGV
> handler also.
I think this still raises a illegal instruction exception,
but someone with a more recent Intel handbook might be able
to say for sure.
In any case, this code is only called under Windows NT, 2K, XP,
and it's kernel doesn't set CR4 that way.
- Raw text -