aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/ia32/ia32entry.S3
-rw-r--r--arch/x86/kernel/asm-offsets_64.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S
index ed9746340363..719db63b35c4 100644
--- a/arch/x86/ia32/ia32entry.S
+++ b/arch/x86/ia32/ia32entry.S
@@ -113,8 +113,7 @@ ENTRY(ia32_sysenter_target)
113 CFI_DEF_CFA rsp,0 113 CFI_DEF_CFA rsp,0
114 CFI_REGISTER rsp,rbp 114 CFI_REGISTER rsp,rbp
115 SWAPGS_UNSAFE_STACK 115 SWAPGS_UNSAFE_STACK
116 movq PER_CPU_VAR(kernel_stack), %rsp 116 movq PER_CPU_VAR(init_tss + TSS_sp0), %rsp
117 addq $(KERNEL_STACK_OFFSET),%rsp
118 /* 117 /*
119 * No need to follow this irqs on/off section: the syscall 118 * No need to follow this irqs on/off section: the syscall
120 * disabled irqs, here we enable it straight after entry: 119 * disabled irqs, here we enable it straight after entry:
diff --git a/arch/x86/kernel/asm-offsets_64.c b/arch/x86/kernel/asm-offsets_64.c
index fdcbb4d27c9f..5ce6f2da8763 100644
--- a/arch/x86/kernel/asm-offsets_64.c
+++ b/arch/x86/kernel/asm-offsets_64.c
@@ -81,6 +81,7 @@ int main(void)
81#undef ENTRY 81#undef ENTRY
82 82
83 OFFSET(TSS_ist, tss_struct, x86_tss.ist); 83 OFFSET(TSS_ist, tss_struct, x86_tss.ist);
84 OFFSET(TSS_sp0, tss_struct, x86_tss.sp0);
84 BLANK(); 85 BLANK();
85 86
86 DEFINE(__NR_syscall_max, sizeof(syscalls_64) - 1); 87 DEFINE(__NR_syscall_max, sizeof(syscalls_64) - 1);