Commit bff12f37 authored by Leendert van Doorn's avatar Leendert van Doorn Committed by Linus Torvalds

[PATCH] arch/i386/kernel/cpu/mtrr: too many bits are masked off from CR4

The old code cuts off the higher bits in CR4 (such as X86_CR4_OSFXSR,
X86_CR4_OSXMMEXCPT).

Signed-off-by: leendert@watson.ibm.com
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a6645437
......@@ -258,7 +258,7 @@ static void prepare_set(void)
/* Save value of CR4 and clear Page Global Enable (bit 7) */
if ( cpu_has_pge ) {
cr4 = read_cr4();
write_cr4(cr4 & (unsigned char) ~(1 << 7));
write_cr4(cr4 & ~X86_CR4_PGE);
}
/* Flush all TLBs via a mov %cr3, %reg; mov %reg, %cr3 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment