LKML Archive on
help / color / mirror / Atom feed
* [PATCH -mm 1/3 -v3] kexec/i386: remove PAGE_SIZE alignment from relocate_kernel
@ 2008-10-30  8:17 Huang Ying
  0 siblings, 0 replies; only message in thread
From: Huang Ying @ 2008-10-30  8:17 UTC (permalink / raw)
  To: Eric W. Biederman, Vivek Goyal, Andrew Morton, Simon Horman,
	Ian Campbell, Magnus Damm
  Cc: linux-kernel, kexec

[-- Attachment #1: Type: text/plain, Size: 811 bytes --]

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 <>

 arch/x86/kernel/relocate_kernel_32.S |    1 -
 1 file changed, 1 deletion(-)

--- a/arch/x86/kernel/relocate_kernel_32.S
+++ b/arch/x86/kernel/relocate_kernel_32.S
@@ -39,7 +39,6 @@
-	.align PAGE_SIZE
 	.globl relocate_kernel
 	/* Save the CPU context, used for jumping back */

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-30  8:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30  8:17 [PATCH -mm 1/3 -v3] kexec/i386: remove PAGE_SIZE alignment from relocate_kernel Huang Ying

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).