Re: [patch] 2.4.0-test2: %cr4 in a register dump

From: Brian Gerst (bgerst@quark.vpplus.com)
Date: Wed Jul 05 2000 - 18:23:17 EST


Linus Torvalds wrote:
>
> On Wed, 5 Jul 2000, Brian Gerst wrote:
>
> > How about just trapping the illegal opcode exception then? (patch
> > untested)
>
> Looks fine. Me likee, except for the fact that you should clear %0
> (otherwise you'll have random crap in the "cr4" variable after a trap - I
> realize that you zeroed the variable on a C source level, but gcc thinks
> that your asm-statement will overwrite it, so ...)
>
> Linus

Hmm, upon a closer look at the source, the illegal opcode trap isn't
quite setup to handle kernel faults properly. I assumed it did since I
got the idea from the 3DNow memcpy code, which uses the illegal opcode
trap for the "prefetch" instruction. I am working on an updated patch.

-- 

Brian Gerst

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:17 EST