Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58776
b: refs/heads/master
c: de32e04
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin authored and Linus Torvalds committed Jul 12, 2007
1 parent 989e168 commit f175add
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec481536b15eb0520d8f0204b0294480050fe1f8
refs/heads/master: de32e04175efbc1ff5e0f509253d5dfc84f173b3
6 changes: 3 additions & 3 deletions trunk/arch/i386/Kconfig.cpu
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ config X86_CMOV
depends on (MK7 || MPENTIUM4 || MPENTIUMM || MPENTIUMIII || MPENTIUMII || M686 || MVIAC3_2 || MVIAC7)
default y

config X86_MINIMUM_CPU_MODEL
config X86_MINIMUM_CPU_FAMILY
int
default "4" if X86_XADD || X86_CMPXCHG || X86_BSWAP
default "0"
default "4" if X86_XADD || X86_CMPXCHG || X86_BSWAP || X86_WP_WORKS_OK
default "3"

4 changes: 2 additions & 2 deletions trunk/arch/i386/kernel/verify_cpu.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ verify_cpu:
pushl $0 # Kill any dangerous flags
popfl

#if CONFIG_X86_MINIMUM_CPU_MODEL >= 4
#if CONFIG_X86_MINIMUM_CPU_FAMILY >= 4
pushfl
pop %eax
orl $(1<<18),%eax # try setting AC
Expand Down Expand Up @@ -75,7 +75,7 @@ verify_cpu:
movl $0x1,%eax # Does the cpu have what it takes
cpuid

#if CONFIG_X86_MINIMUM_CPU_MODEL > 4
#if CONFIG_X86_MINIMUM_CPU_FAMILY > 4
#error add proper model checking here
#endif

Expand Down

0 comments on commit f175add

Please sign in to comment.