diff options
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/relocate_kernel_32.S | 2 | ||||
-rw-r--r-- | arch/x86/kernel/relocate_kernel_64.S | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/kernel/relocate_kernel_32.S b/arch/x86/kernel/relocate_kernel_32.S index 41235531b11c..36818f8ec2be 100644 --- a/arch/x86/kernel/relocate_kernel_32.S +++ b/arch/x86/kernel/relocate_kernel_32.S | |||
@@ -97,6 +97,8 @@ relocate_kernel: | |||
97 | ret | 97 | ret |
98 | 98 | ||
99 | identity_mapped: | 99 | identity_mapped: |
100 | /* set return address to 0 if not preserving context */ | ||
101 | pushl $0 | ||
100 | /* store the start address on the stack */ | 102 | /* store the start address on the stack */ |
101 | pushl %edx | 103 | pushl %edx |
102 | 104 | ||
diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S index 4de8f5b3d476..7a6f3b3be3cf 100644 --- a/arch/x86/kernel/relocate_kernel_64.S +++ b/arch/x86/kernel/relocate_kernel_64.S | |||
@@ -100,6 +100,8 @@ relocate_kernel: | |||
100 | ret | 100 | ret |
101 | 101 | ||
102 | identity_mapped: | 102 | identity_mapped: |
103 | /* set return address to 0 if not preserving context */ | ||
104 | pushq $0 | ||
103 | /* store the start address on the stack */ | 105 | /* store the start address on the stack */ |
104 | pushq %rdx | 106 | pushq %rdx |
105 | 107 | ||