summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/asm-offsets.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-09-18 17:22:59 +1000
committerPaul Mackerras <paulus@samba.org>2007-09-19 15:25:34 +1000
commitee7a76da1ef5e3e5e0e54e84319e435ea25c267c (patch)
treedf68b3ffb08df0a243085ddd59a9d4cfb2b01a6d /arch/powerpc/kernel/asm-offsets.c
parent19a8d97d89442e2bda6245b8a3de2c1fec69a7ad (diff)
downloadblackbird-obmc-linux-ee7a76da1ef5e3e5e0e54e84319e435ea25c267c.tar.gz
blackbird-obmc-linux-ee7a76da1ef5e3e5e0e54e84319e435ea25c267c.zip
[POWERPC] Size swapper_pg_dir correctly
David Gibson pointed out that swapper_pg_dir actually need to be PGD_TABLE_SIZE bytes long not PAGE_SIZE. This actually saves 64k in the bss for a kernel ppc64_defconfig built with CONFIG_PPC_64K_PAGES. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/asm-offsets.c')
-rw-r--r--arch/powerpc/kernel/asm-offsets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/asm-offsets.c b/arch/powerpc/kernel/asm-offsets.c
index a40805328f9b..0ae5d57b9368 100644
--- a/arch/powerpc/kernel/asm-offsets.c
+++ b/arch/powerpc/kernel/asm-offsets.c
@@ -320,5 +320,9 @@ int main(void)
DEFINE(VMALLOC_START_ESID, GET_ESID(VMALLOC_START));
DEFINE(VMALLOC_START_VSID, KERNEL_VSID(VMALLOC_START));
#endif
+
+#ifdef CONFIG_PPC64
+ DEFINE(PGD_TABLE_SIZE, PGD_TABLE_SIZE);
+#endif
return 0;
}
OpenPOWER on IntegriCloud