aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/relocate_kernel_32.S2
-rw-r--r--arch/x86/kernel/relocate_kernel_64.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/relocate_kernel_32.S b/arch/x86/kernel/relocate_kernel_32.S
index fbc4fad23137..ce12bb8678ad 100644
--- a/arch/x86/kernel/relocate_kernel_32.S
+++ b/arch/x86/kernel/relocate_kernel_32.S
@@ -154,7 +154,7 @@ relocate_new_kernel:
154 movl %eax, %cr3 154 movl %eax, %cr3
155 155
156 /* setup a new stack at the end of the physical control page */ 156 /* setup a new stack at the end of the physical control page */
157 lea 4096(%edi), %esp 157 lea PAGE_SIZE(%edi), %esp
158 158
159 /* jump to identity mapped page */ 159 /* jump to identity mapped page */
160 movl %edi, %eax 160 movl %edi, %eax
diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S
index e252c0ed9539..c2c8b9d6e241 100644
--- a/arch/x86/kernel/relocate_kernel_64.S
+++ b/arch/x86/kernel/relocate_kernel_64.S
@@ -159,7 +159,7 @@ relocate_new_kernel:
159 movq %r9, %cr3 159 movq %r9, %cr3
160 160
161 /* setup a new stack at the end of the physical control page */ 161 /* setup a new stack at the end of the physical control page */
162 lea 4096(%r8), %rsp 162 lea PAGE_SIZE(%r8), %rsp
163 163
164 /* jump to identity mapped page */ 164 /* jump to identity mapped page */
165 addq $(identity_mapped - relocate_kernel), %r8 165 addq $(identity_mapped - relocate_kernel), %r8