On Mon, 7 Nov 2005, Zachary Amsden wrote:
Maciej W. Rozycki wrote:
On Mon, 7 Nov 2005, Zachary Amsden wrote:Because I hold in my hand "i486 Microprocessor Programmer's Reference
While this is at least no worse in the nested fault case than earlierWhat's so weird about 486s? Besides, for testing it doesn't have to be
kernels, I really wish I had one of those weird 486s so I could test the
faulting mechanism. It seems the trap handling code has gotten quite
one -- you will get away with a 386, too. I have neither anymore, but
there are people around still using them.
Manual, c 1990", and it has no mention whatsoever of CR4, and all
documentation I had until Friday had either no mention of CR4, or
something to the effect of "new on Pentium, the CR4 register ..." So
I've had to re-adjust my definition of 486, which was weird.
Zach
-
Yes, and undocumented opcodes might not fault. They might do nothing
or something strange. It's not a good idea to use an undocumented
opcode in kernel space. The read-from-CR4 in kernel space, hoping
that an immoral-opcode trap will save you is not good practice.
You might reset the processor.