public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* cpuid_eax damages registers (2.4.7pre7)
@ 2001-07-18 10:48 Julian Anastasov
  2001-07-18 15:10 ` Linus Torvalds
  0 siblings, 1 reply; 22+ messages in thread
From: Julian Anastasov @ 2001-07-18 10:48 UTC (permalink / raw)
  To: linux-kernel


	Hello,

	I don't know whether cpuid_eax (2.4.7pre) should preserve the
registers changed from cpuid but I have an oops on boot with 2.4.7pre7 in
squash_the_stupid_serial_number where cpuid_eax changes ebx and the
parameter "c" is loaded with "Genu". The following change fixes the
problem:

from:

c->cpuid_level = cpuid_eax(0);

to:

unsigned int dummy;

cpuid(0, &c->cpuid_level, &dummy, &dummy, &dummy);


but I'm not sure in the definitions of these cpuid_XXX funcs. I see
that they are used at many places. IMO, they have to preserve the
registers.


Regards

--
Julian Anastasov <ja@ssi.bg>


^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: cpuid_eax damages registers (2.4.7pre7)
@ 2001-07-18 20:30 Rick Hohensee
  2001-07-19  5:15 ` Keith Owens
  0 siblings, 1 reply; 22+ messages in thread
From: Rick Hohensee @ 2001-07-18 20:30 UTC (permalink / raw)
  To: linux-kernel

>We should try to find a work-around.

>> >  - do a "make arch/i386/kernel/setup.s" both ways, and show what

Is there a way to do a "make bla/zay/woof.c "  and save the woof.s ?


Rick Hohensee
						www.clienux.com

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2001-07-22  4:28 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-18 10:48 cpuid_eax damages registers (2.4.7pre7) Julian Anastasov
2001-07-18 15:10 ` Linus Torvalds
2001-07-18 17:08   ` Julian Anastasov
2001-07-18 17:21     ` Linus Torvalds
2001-07-18 20:43       ` Kai Germaschewski
2001-07-18 22:04       ` Linus Torvalds
2001-07-18 22:25         ` Kai Germaschewski
2001-07-19  8:23         ` Julian Anastasov
2001-07-19 18:36           ` H. Peter Anvin
2001-07-20  1:42         ` Julian Anastasov
2001-07-19 22:51           ` H. Peter Anvin
2001-07-20  2:01             ` Julian Anastasov
2001-07-19 23:02               ` H. Peter Anvin
2001-07-19 22:55           ` Linus Torvalds
2001-07-20  2:19             ` Julian Anastasov
2001-07-19 23:23               ` H. Peter Anvin
2001-07-19 23:24               ` Linus Torvalds
2001-07-22  0:00         ` Richard Henderson
2001-07-22  4:27           ` H. Peter Anvin
2001-07-21 23:45   ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2001-07-18 20:30 Rick Hohensee
2001-07-19  5:15 ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox