Skip to content

Commit 31498a0

Browse files
yhuang-intelIngo Molnar
authored andcommitted
kexec/i386: remove PAGE_SIZE alignment from relocate_kernel
Impact: save kernel .text by loosening kexec page alignment This patch removes PAGE_SIZE alignment from relocate_kernel(). Before kexec jump patches are merged, control page is mapped to relocate_kernel in kexec page tables, so relocate_kernel must be PAGE_SIZE aligned. Now, control page is mapped to identity mapped address, so relocate_kernel need not to be PAGE_SIZE aligned any more. This can reduce a few KB from kernel text segement. Signed-off-by: Huang Ying <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 721d5df commit 31498a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kernel/relocate_kernel_32.S

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#define CP_PA_BACKUP_PAGES_MAP DATA(0x1c)
4040

4141
.text
42-
.align PAGE_SIZE
4342
.globl relocate_kernel
4443
relocate_kernel:
4544
/* Save the CPU context, used for jumping back */

0 commit comments

Comments
 (0)