public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel/microcode.c error from new 64bit code
@ 2004-02-18 22:52 Stephen Hemminger
  2004-02-18 23:08 ` Linus Torvalds
  0 siblings, 1 reply; 16+ messages in thread
From: Stephen Hemminger @ 2004-02-18 22:52 UTC (permalink / raw)
  To: ak, Linus Torvalds; +Cc: linux-kernel

In the mad rush to put in Intel 64 bit support, did anyone make sure and not
break the 32 bit build?

arch/i386/kernel/microcode.c: In function `do_update_one':
arch/i386/kernel/microcode.c:374: warning: cast from pointer to integer of different size
arch/i386/kernel/microcode.c:374: warning: cast from pointer to integer of different size
arch/i386/kernel/microcode.c:374: error: impossible register constraint in `asm'
arch/i386/kernel/microcode.c:389: confused by earlier errors, bailing out
make[1]: *** [arch/i386/kernel/microcode.o] Error 1
make[1]: Target `__build' not remade because of errors.
make: *** [arch/i386/kernel] Error 2

^ permalink raw reply	[flat|nested] 16+ messages in thread
* RE: kernel/microcode.c error from new 64bit code
@ 2004-02-19  0:12 Nakajima, Jun
  0 siblings, 0 replies; 16+ messages in thread
From: Nakajima, Jun @ 2004-02-19  0:12 UTC (permalink / raw)
  To: Linus Torvalds, Stephen Hemminger; +Cc: ak, linux-kernel

Looks good to me.

Jun
>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel-
>owner@vger.kernel.org] On Behalf Of Linus Torvalds
>Sent: Wednesday, February 18, 2004 3:08 PM
>To: Stephen Hemminger
>Cc: ak@suse.de; linux-kernel@vger.kernel.org
>Subject: Re: kernel/microcode.c error from new 64bit code
>
>
>
>On Wed, 18 Feb 2004, Stephen Hemminger wrote:
>>
>> In the mad rush to put in Intel 64 bit support, did anyone make sure
and
>not
>> break the 32 bit build?
>
>Heh. Somebody has the driver enabled ;).
>
>How about this patch?
>
>		Linus
>
>---
>===== arch/i386/kernel/microcode.c 1.24 vs edited =====
>--- 1.24/arch/i386/kernel/microcode.c	Tue Feb 17 18:14:37 2004
>+++ edited/arch/i386/kernel/microcode.c	Wed Feb 18 15:05:38 2004
>@@ -371,8 +371,9 @@
> 	spin_lock_irqsave(&microcode_update_lock, flags);
>
> 	/* write microcode via MSR 0x79 */
>-	wrmsr(MSR_IA32_UCODE_WRITE, (u64)(uci->mc->bits),
>-	      (u64)(uci->mc->bits) >> 32);
>+	wrmsr(MSR_IA32_UCODE_WRITE,
>+		(unsigned long) uci->mc->bits,
>+		(unsigned long) uci->mc->bits >> 16 >> 16);
> 	wrmsr(MSR_IA32_UCODE_REV, 0, 0);
>
> 	__asm__ __volatile__ ("cpuid" : : : "ax", "bx", "cx", "dx");
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

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

end of thread, other threads:[~2004-02-22 20:41 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-18 22:52 kernel/microcode.c error from new 64bit code Stephen Hemminger
2004-02-18 23:08 ` Linus Torvalds
2004-02-18 23:21   ` Linus Torvalds
2004-02-21 14:16   ` Pavel Machek
2004-02-21 17:18     ` Linus Torvalds
2004-02-21 17:34       ` Pavel Machek
2004-02-21 17:44         ` Linus Torvalds
2004-02-21 18:36           ` Eric W. Biederman
2004-02-21 18:48             ` Pavel Machek
2004-02-21 19:03             ` Linus Torvalds
2004-02-21 19:30               ` Eric W. Biederman
2004-02-22 20:12       ` H. Peter Anvin
2004-02-22 20:32         ` Linus Torvalds
2004-02-22 20:33           ` H. Peter Anvin
2004-02-22 20:41           ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2004-02-19  0:12 Nakajima, Jun

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