From: David Gibson Date: Fri, 19 Aug 2005 04:52:32 +0000 (+1000) Subject: [PATCH] Move variables in ppc64 head.S from .data to .bss X-Git-Tag: v2.6.14-rc1~1037^2~20 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6fbb49d56d228b666cb4534bbc3c2dfe833c8053;p=linux-2.6-omap-h63xx.git [PATCH] Move variables in ppc64 head.S from .data to .bss The ppc64 head.S defines several zero-initialized structures, such as the empty_zero_page and the kernel top-level pagetable. Currently they are defined to be in the data section. However, they're not used until after the bss is cleared, so this patch moves them to the bss, saving two and a half pages from the vmlinux. Signed-off-by: David Gibson Signed-off-by: Paul Mackerras --- diff --git a/arch/ppc64/kernel/head.S b/arch/ppc64/kernel/head.S index c7462fae766..a0ff707d6fe 100644 --- a/arch/ppc64/kernel/head.S +++ b/arch/ppc64/kernel/head.S @@ -1971,20 +1971,19 @@ _GLOBAL(smp_release_cpus) /* * We put a few things here that have to be page-aligned. - * This stuff goes at the beginning of the data segment, - * which is page-aligned. + * This stuff goes at the beginning of the bss, which is page-aligned. */ - .data + .section ".bss" + .align 12 - .globl sdata -sdata: + .globl empty_zero_page empty_zero_page: - .space 4096 + .space PAGE_SIZE .globl swapper_pg_dir swapper_pg_dir: - .space 4096 + .space PAGE_SIZE /* * This space gets a copy of optional info passed to us by the bootstrap