diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2005-08-19 00:52:32 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-08-28 20:53:34 -0400 |
commit | 6fbb49d56d228b666cb4534bbc3c2dfe833c8053 (patch) | |
tree | 882f26e7b97d564eb52fbb9462812c87cb146fca | |
parent | 91a57fc6723d778e12686b5106a38583072fd767 (diff) |
[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 <dwg@au1.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/ppc64/kernel/head.S | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/arch/ppc64/kernel/head.S b/arch/ppc64/kernel/head.S index c7462fae7662..a0ff707d6fea 100644 --- a/arch/ppc64/kernel/head.S +++ b/arch/ppc64/kernel/head.S | |||
@@ -1971,20 +1971,19 @@ _GLOBAL(smp_release_cpus) | |||
1971 | 1971 | ||
1972 | /* | 1972 | /* |
1973 | * We put a few things here that have to be page-aligned. | 1973 | * We put a few things here that have to be page-aligned. |
1974 | * This stuff goes at the beginning of the data segment, | 1974 | * This stuff goes at the beginning of the bss, which is page-aligned. |
1975 | * which is page-aligned. | ||
1976 | */ | 1975 | */ |
1977 | .data | 1976 | .section ".bss" |
1977 | |||
1978 | .align 12 | 1978 | .align 12 |
1979 | .globl sdata | 1979 | |
1980 | sdata: | ||
1981 | .globl empty_zero_page | 1980 | .globl empty_zero_page |
1982 | empty_zero_page: | 1981 | empty_zero_page: |
1983 | .space 4096 | 1982 | .space PAGE_SIZE |
1984 | 1983 | ||
1985 | .globl swapper_pg_dir | 1984 | .globl swapper_pg_dir |
1986 | swapper_pg_dir: | 1985 | swapper_pg_dir: |
1987 | .space 4096 | 1986 | .space PAGE_SIZE |
1988 | 1987 | ||
1989 | /* | 1988 | /* |
1990 | * This space gets a copy of optional info passed to us by the bootstrap | 1989 | * This space gets a copy of optional info passed to us by the bootstrap |