Skip to content

Commit

Permalink
[PATCH] i386: Don't discard upper 32bits of HWCR on K8
Browse files Browse the repository at this point in the history
Need to use long long, not long when RMWing a MSR. I think
it's harmless right now, but still should be better fixed
if AMD adds any bits in the upper 32bit of HWCR.

Bug was introduced with the TLB flush filter fix for i386

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Oct 10, 2005
1 parent 421c7ce commit 3c92c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/i386/kernel/cpu/amd.c
Expand Up @@ -29,7 +29,7 @@ static void __init init_amd(struct cpuinfo_x86 *c)
int r;

#ifdef CONFIG_SMP
unsigned long value;
unsigned long long value;

/* Disable TLB flush filter by setting HWCR.FFDIS on K8
* bit 6 of msr C001_0015
Expand Down

0 comments on commit 3c92c2b

Please sign in to comment.