提交 9d9bbd4d 编写于 作者: A Andi Kleen 提交者: Linus Torvalds

i386: Make CMPXCHG64 only dependent on PAE

It is only used for PAE kernels in set_64bit.

The problem is that due to a old Windows bug many CPUs need magic MSRs
to enable CMPXCHG64, and we can't do that nicely early enough before
it is potentially used.

But since we only need it in PAE kernels so only force the checking
for CMPXCHG65 with PAE.

This fixes a boot failure on Transmeta Crusoe
Signed-off-by: NAndi Kleen <ak@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3f2c6d0f
...@@ -541,7 +541,7 @@ config HIGHMEM4G ...@@ -541,7 +541,7 @@ config HIGHMEM4G
config HIGHMEM64G config HIGHMEM64G
bool "64GB" bool "64GB"
depends on X86_CMPXCHG64 depends on !M386 && !M486
help help
Select this if you have a 32-bit processor and more than 4 Select this if you have a 32-bit processor and more than 4
gigabytes of physical RAM. gigabytes of physical RAM.
......
...@@ -299,7 +299,7 @@ config X86_POPAD_OK ...@@ -299,7 +299,7 @@ config X86_POPAD_OK
config X86_CMPXCHG64 config X86_CMPXCHG64
bool bool
depends on !M386 && !M486 depends on X86_PAE
default y default y
config X86_ALIGNMENT_16 config X86_ALIGNMENT_16
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册