Skip to content

Commit

Permalink
x86: x86-64 wired cpu_has macros
Browse files Browse the repository at this point in the history
This adds hard-wired definitions for the remaining cpu_has_* macros
that correspond to flags required-features.h demands are set for
64-bit.  Using these can efficiently avoid some #ifdef's when
merging 32-bit and 64-bit code together.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Roland McGrath authored and Ingo Molnar committed Jan 30, 2008
1 parent c269f19 commit 863aec8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions include/asm-x86/cpufeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,21 @@
#undef cpu_has_centaur_mcr
#define cpu_has_centaur_mcr 0

#undef cpu_has_pse
#define cpu_has_pse 1

#undef cpu_has_pge
#define cpu_has_pge 1

#undef cpu_has_xmm
#define cpu_has_xmm 1

#undef cpu_has_xmm2
#define cpu_has_xmm2 1

#undef cpu_has_fxsr
#define cpu_has_fxsr 1

#endif /* CONFIG_X86_64 */

#endif /* _ASM_X86_CPUFEATURE_H */

0 comments on commit 863aec8

Please sign in to comment.