diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2006-05-05 01:02:08 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2006-05-05 01:02:08 -0400 |
commit | 7e990266c845d7f712c96013891aaf74baef198f (patch) | |
tree | 92bc569003abdfd53b53f1081132469d92497ded /arch/powerpc/kernel/setup_32.c | |
parent | 5a43ee65620d628ba04deecf241b63b2410b97f2 (diff) |
powerpc: provide ppc_md.panic() for both ppc32 & ppc64
Allow boards to provide a panic callback on ppc32. Moved the code to sets
this up into setup-common.c so its shared between ppc32 & ppc64. Also moved
do_init_bootmem prototype into setup.h.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/setup_32.c')
-rw-r--r-- | arch/powerpc/kernel/setup_32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 69ac25701344..88832b3ee661 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c | |||
@@ -235,8 +235,6 @@ arch_initcall(ppc_init); | |||
235 | /* Warning, IO base is not yet inited */ | 235 | /* Warning, IO base is not yet inited */ |
236 | void __init setup_arch(char **cmdline_p) | 236 | void __init setup_arch(char **cmdline_p) |
237 | { | 237 | { |
238 | extern void do_init_bootmem(void); | ||
239 | |||
240 | /* so udelay does something sensible, assume <= 1000 bogomips */ | 238 | /* so udelay does something sensible, assume <= 1000 bogomips */ |
241 | loops_per_jiffy = 500000000 / HZ; | 239 | loops_per_jiffy = 500000000 / HZ; |
242 | 240 | ||
@@ -285,6 +283,9 @@ void __init setup_arch(char **cmdline_p) | |||
285 | /* reboot on panic */ | 283 | /* reboot on panic */ |
286 | panic_timeout = 180; | 284 | panic_timeout = 180; |
287 | 285 | ||
286 | if (ppc_md.panic) | ||
287 | setup_panic(); | ||
288 | |||
288 | init_mm.start_code = PAGE_OFFSET; | 289 | init_mm.start_code = PAGE_OFFSET; |
289 | init_mm.end_code = (unsigned long) _etext; | 290 | init_mm.end_code = (unsigned long) _etext; |
290 | init_mm.end_data = (unsigned long) _edata; | 291 | init_mm.end_data = (unsigned long) _edata; |