lkml.org 
[lkml]   [2000]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] 2.4.0-test2: %cr4 in a register dump


On Wed, 5 Jul 2000, Brian Gerst wrote:

> Linus Torvalds wrote:
> > If I remember correctly, there are CPU's out there that will bomb out
> > horribly when you access %cr4 if the register doesn't exist.
> >
> > Do I remember wrong?
> >
> > I'd certainly agree with printing out cr4 even if it would be zero, I just
> > disagree very much with adding a register read to the dump output that may
> > cause an infinite regression of traps..
> >
> > Linus
>
> 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


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.043 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site