aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/setup_64.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-07-05 01:03:46 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-11 06:09:40 -0400
commit63c254a501049f70c53aea602525c6912362079e (patch)
tree4c1773a7a48250f8b2de88eb01f1abc42a3636e6 /arch/powerpc/kernel/setup_64.c
parentbd7c93cca36911baf2eb2bc386956612af3b842d (diff)
powerpc: Add comment explaining the purpose of setup_kdump_trampoline()
Anything in early_setup() needs to be justified to be there, in this case, we need the trampolines before we can take exceptions and thus before we turn on the MMU. Also remove a pretty meaningless and misplaced debug message Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> [mpe: Fix comment formatting] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r--arch/powerpc/kernel/setup_64.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c
index 5530bb55a78b..98f72c6d0ebc 100644
--- a/arch/powerpc/kernel/setup_64.c
+++ b/arch/powerpc/kernel/setup_64.c
@@ -279,10 +279,12 @@ void __init early_setup(unsigned long dt_ptr)
279 /* Probe the machine type */ 279 /* Probe the machine type */
280 probe_machine(); 280 probe_machine();
281 281
282 /*
283 * Setup the trampolines from the lowmem exception vectors
284 * to the kdump kernel when not using a relocatable kernel.
285 */
282 setup_kdump_trampoline(); 286 setup_kdump_trampoline();
283 287
284 DBG("Found, Initializing memory management...\n");
285
286 /* Initialize the hash table or TLB handling */ 288 /* Initialize the hash table or TLB handling */
287 early_init_mmu(); 289 early_init_mmu();
288 290