aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-04-15 15:52:26 -0400
committerPaul Mackerras <paulus@samba.org>2008-04-16 17:46:13 -0400
commit4846c5deb9776a7306d0f656ade7505278ac39ba (patch)
tree42ad389b154de5e498dd6dfde6d710d748a536cf /arch/powerpc/kernel/setup_64.c
parent09b5e63f827016732d956abb7a4c74a312d20521 (diff)
[POWERPC] Clean up some linker and symbol usage
* PAGE_OFFSET is not always the start of code, use _stext instead. * grab PAGE_SIZE and KERNELBASE from asm/page.h like ppc64 does. Makes the code a bit more common and provide a single place to manipulate the defines for things like kdump. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r--arch/powerpc/kernel/setup_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 2c2d8315193c..0205d408d2ed 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -510,7 +510,7 @@ void __init setup_arch(char **cmdline_p)
510 if (ppc_md.panic) 510 if (ppc_md.panic)
511 setup_panic(); 511 setup_panic();
512 512
513 init_mm.start_code = PAGE_OFFSET; 513 init_mm.start_code = (unsigned long)_stext;
514 init_mm.end_code = (unsigned long) _etext; 514 init_mm.end_code = (unsigned long) _etext;
515 init_mm.end_data = (unsigned long) _edata; 515 init_mm.end_data = (unsigned long) _edata;
516 init_mm.brk = klimit; 516 init_mm.brk = klimit;