提交 863aec86 编写于 作者: R Roland McGrath 提交者: Ingo Molnar

x86: x86-64 wired cpu_has macros

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: NRoland McGrath <roland@redhat.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 c269f196
...@@ -192,9 +192,21 @@ ...@@ -192,9 +192,21 @@
#undef cpu_has_centaur_mcr #undef cpu_has_centaur_mcr
#define cpu_has_centaur_mcr 0 #define cpu_has_centaur_mcr 0
#undef cpu_has_pse
#define cpu_has_pse 1
#undef cpu_has_pge #undef cpu_has_pge
#define cpu_has_pge 1 #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 /* CONFIG_X86_64 */
#endif /* _ASM_X86_CPUFEATURE_H */ #endif /* _ASM_X86_CPUFEATURE_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册