2 * include/asm-x86_64/bugs.h
4 * Copyright (C) 1994 Linus Torvalds
5 * Copyright (C) 2000 SuSE
7 * This is included by init/main.c to check for architecture-dependent bugs.
10 * void check_bugs(void);
13 #include <linux/config.h>
14 #include <asm/processor.h>
19 static inline void check_fpu(void)
21 extern void __bad_fxsave_alignment(void);
22 if (offsetof(struct task_struct, thread.i387.fxsave) & 15)
23 __bad_fxsave_alignment();
25 /* This should not be here */
26 set_in_cr4(X86_CR4_OSFXSR);
27 set_in_cr4(X86_CR4_OSXMMEXCPT);
30 static void __init check_bugs(void)
32 identify_cpu(&boot_cpu_data);