Skip to content

Commit

Permalink
kexec/i386: remove PAGE_SIZE alignment from relocate_kernel
Browse files Browse the repository at this point in the history
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 <ying.huang@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Huang Ying authored and Ingo Molnar committed Oct 31, 2008
1 parent 721d5df commit 31498a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kernel/relocate_kernel_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#define CP_PA_BACKUP_PAGES_MAP DATA(0x1c)

.text
.align PAGE_SIZE
.globl relocate_kernel
relocate_kernel:
/* Save the CPU context, used for jumping back */
Expand Down

0 comments on commit 31498a0

Please sign in to comment.