Commit 6fbb49d5 authored by David Gibson's avatar David Gibson Committed by Paul Mackerras

[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: default avatarDavid Gibson <dwg@au1.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 91a57fc6
...@@ -1971,20 +1971,19 @@ _GLOBAL(smp_release_cpus) ...@@ -1971,20 +1971,19 @@ _GLOBAL(smp_release_cpus)
/* /*
* We put a few things here that have to be page-aligned. * We put a few things here that have to be page-aligned.
* This stuff goes at the beginning of the data segment, * This stuff goes at the beginning of the bss, which is page-aligned.
* which is page-aligned.
*/ */
.data .section ".bss"
.align 12 .align 12
.globl sdata
sdata:
.globl empty_zero_page .globl empty_zero_page
empty_zero_page: empty_zero_page:
.space 4096 .space PAGE_SIZE
.globl swapper_pg_dir .globl swapper_pg_dir
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 * This space gets a copy of optional info passed to us by the bootstrap
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment