aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/espfix.h16
-rw-r--r--arch/x86/include/asm/setup.h5
-rw-r--r--arch/x86/kernel/espfix_64.c1
3 files changed, 19 insertions, 3 deletions
diff --git a/arch/x86/include/asm/espfix.h b/arch/x86/include/asm/espfix.h
new file mode 100644
index 000000000000..729051c82b02
--- /dev/null
+++ b/arch/x86/include/asm/espfix.h
@@ -0,0 +1,16 @@
1#ifdef _ASM_X86_ESPFIX_H
2#define _ASM_X86_ESPFIX_H
3
4#ifdef CONFIG_X86_64
5
6#include <asm/percpu.h>
7
8DECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_stack);
9DECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_waddr);
10
11extern void init_espfix_bsp(void);
12extern void init_espfix_ap(void);
13
14#endif /* CONFIG_X86_64 */
15
16#endif /* _ASM_X86_ESPFIX_H */
diff --git a/arch/x86/include/asm/setup.h b/arch/x86/include/asm/setup.h
index 9e3be3329a7e..ff4e7b236e21 100644
--- a/arch/x86/include/asm/setup.h
+++ b/arch/x86/include/asm/setup.h
@@ -57,11 +57,10 @@ extern void x86_ce4100_early_setup(void);
57static inline void x86_ce4100_early_setup(void) { } 57static inline void x86_ce4100_early_setup(void) { }
58#endif 58#endif
59 59
60extern void init_espfix_bsp(void);
61extern void init_espfix_ap(void);
62
63#ifndef _SETUP 60#ifndef _SETUP
64 61
62#include <asm/espfix.h>
63
65/* 64/*
66 * This is set up by the setup-routine at boot-time 65 * This is set up by the setup-routine at boot-time
67 */ 66 */
diff --git a/arch/x86/kernel/espfix_64.c b/arch/x86/kernel/espfix_64.c
index 8a64da36310f..6afbb16e9b79 100644
--- a/arch/x86/kernel/espfix_64.c
+++ b/arch/x86/kernel/espfix_64.c
@@ -40,6 +40,7 @@
40#include <asm/pgtable.h> 40#include <asm/pgtable.h>
41#include <asm/pgalloc.h> 41#include <asm/pgalloc.h>
42#include <asm/setup.h> 42#include <asm/setup.h>
43#include <asm/espfix.h>
43 44
44/* 45/*
45 * Note: we only need 6*8 = 48 bytes for the espfix stack, but round 46 * Note: we only need 6*8 = 48 bytes for the espfix stack, but round