i386: fix PGE mask
authorBrian Gerst <bgerst@didntduck.org>
Mon, 21 May 2007 12:31:53 +0000 (14:31 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 21 May 2007 16:56:57 +0000 (09:56 -0700)
commit17304383ebc1ce68a88030ac4d18ea549d9578c7
treeddeebffef6841cc421e9fc9bf5429b4a97057363
parentd0aff6e6f4e54f79f9c89d147d371bad384454e9
i386: fix PGE mask

cr4 is a 32-bit register, so casting the mask to an unsigned char is wrong,
as it clears more than the PGE bit.

Signed-off-by: Brian Gerst <bgerst@didntduck.org>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/i386/kernel/cpu/mtrr/cyrix.c
arch/i386/kernel/cpu/mtrr/state.c