public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* transmeta cpu code question
@ 2003-11-20  2:02 Nico Schottelius
  2003-11-20  2:10 ` Ben Hoskings
  2003-11-20  2:53 ` Ben Collins
  0 siblings, 2 replies; 14+ messages in thread
From: Nico Schottelius @ 2003-11-20  2:02 UTC (permalink / raw)
  To: linux-kernel

Hello!

What does this do:

                printk(KERN_INFO "CPU: Processor revision %u.%u.%u.%u,
%u MHz\n",
                       (cpu_rev >> 24) & 0xff,
                       (cpu_rev >> 16) & 0xff,
                       (cpu_rev >> 8) & 0xff,
                       cpu_rev & 0xff,
                       cpu_freq);

(from arch/i386/kernel/cpu/transmeta.c)

Does not & 0xff make no sense? 0 & 1 makes 0, 1 & 1 makes 1, 
no changes.

And I don't understand why we do this for 8bit and shifting the
cpu_rev...

Can someone enlighten me (with CC' as I am not subscribed) ?

Nico

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

end of thread, other threads:[~2003-11-24 13:19 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-20  2:02 transmeta cpu code question Nico Schottelius
2003-11-20  2:10 ` Ben Hoskings
2003-11-20  8:38   ` Nico Schottelius
2003-11-20 17:33     ` H. Peter Anvin
2003-11-20 23:25       ` Jamie Lokier
2003-11-21  8:34         ` John Bradford
2003-11-21  8:48           ` Jamie Lokier
2003-11-24  6:54             ` H. Peter Anvin
2003-11-24 13:19               ` Jamie Lokier
2003-11-20  2:53 ` Ben Collins
2003-11-20  3:06   ` Kevin P. Fleming
2003-11-20 13:25     ` Ben Collins
2003-11-20  3:18   ` Ben Hoskings
2003-11-20  6:57   ` Eric Sandall

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