]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1b94d6464a1d8493bb05fef2e4bc9bb63d6ee3d3
treeddeebffef6841cc421e9fc9bf5429b4a97057363
parenta56fb5c082f5c036940a4c959331ef4c10f08aba
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