diff options
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 3b1529c103ef..31ada9fdfc5c 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -33,6 +33,8 @@ | |||
33 | #include <linux/serial_8250.h> | 33 | #include <linux/serial_8250.h> |
34 | #include <linux/bootmem.h> | 34 | #include <linux/bootmem.h> |
35 | #include <linux/pci.h> | 35 | #include <linux/pci.h> |
36 | #include <linux/lockdep.h> | ||
37 | #include <linux/lmb.h> | ||
36 | #include <asm/io.h> | 38 | #include <asm/io.h> |
37 | #include <asm/kdump.h> | 39 | #include <asm/kdump.h> |
38 | #include <asm/prom.h> | 40 | #include <asm/prom.h> |
@@ -55,7 +57,6 @@ | |||
55 | #include <asm/cache.h> | 57 | #include <asm/cache.h> |
56 | #include <asm/page.h> | 58 | #include <asm/page.h> |
57 | #include <asm/mmu.h> | 59 | #include <asm/mmu.h> |
58 | #include <asm/lmb.h> | ||
59 | #include <asm/firmware.h> | 60 | #include <asm/firmware.h> |
60 | #include <asm/xmon.h> | 61 | #include <asm/xmon.h> |
61 | #include <asm/udbg.h> | 62 | #include <asm/udbg.h> |
@@ -178,6 +179,9 @@ void __init early_setup(unsigned long dt_ptr) | |||
178 | /* Enable early debugging if any specified (see udbg.h) */ | 179 | /* Enable early debugging if any specified (see udbg.h) */ |
179 | udbg_early_init(); | 180 | udbg_early_init(); |
180 | 181 | ||
182 | /* Initialize lockdep early or else spinlocks will blow */ | ||
183 | lockdep_init(); | ||
184 | |||
181 | DBG(" -> early_setup(), dt_ptr: 0x%lx\n", dt_ptr); | 185 | DBG(" -> early_setup(), dt_ptr: 0x%lx\n", dt_ptr); |
182 | 186 | ||
183 | /* | 187 | /* |
@@ -510,7 +514,7 @@ void __init setup_arch(char **cmdline_p) | |||
510 | if (ppc_md.panic) | 514 | if (ppc_md.panic) |
511 | setup_panic(); | 515 | setup_panic(); |
512 | 516 | ||
513 | init_mm.start_code = PAGE_OFFSET; | 517 | init_mm.start_code = (unsigned long)_stext; |
514 | init_mm.end_code = (unsigned long) _etext; | 518 | init_mm.end_code = (unsigned long) _etext; |
515 | init_mm.end_data = (unsigned long) _edata; | 519 | init_mm.end_data = (unsigned long) _edata; |
516 | init_mm.brk = klimit; | 520 | init_mm.brk = klimit; |