tree 882f26e7b97d564eb52fbb9462812c87cb146fca
parent 91a57fc6723d778e12686b5106a38583072fd767
author David Gibson <[EMAIL PROTECTED]> Fri, 19 Aug 2005 14:52:32 +1000
committer Paul Mackerras <[EMAIL PROTECTED]> Mon, 29 Aug 2005 10:53:34 +1000

[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 <[EMAIL PROTECTED]>
Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>

 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
--- 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
        .globl  empty_zero_page
-       .space  4096
+       .space  PAGE_SIZE
        .globl  swapper_pg_dir
-       .space  4096
+       .space  PAGE_SIZE
  * This space gets a copy of optional info passed to us by the bootstrap
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to