* [PATCH] powerpc: Print the kernel load address at the end of prom_init
@ 2016-08-10 7:29 Benjamin Herrenschmidt
2016-08-11 11:16 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2016-08-10 7:29 UTC (permalink / raw)
To: linuxppc-dev
This makes it easier to debug crashes that happen very early before
the kernel takes over Open Firmware by allowing us to relate the OF
reported crashing addresses to offsets within the kernel.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index 6ee4b72..2ea0ea5 100644
--- a/arch/powerpc/kernel/prom_init.c
+++ b/arch/powerpc/kernel/prom_init.c
@@ -2940,7 +2940,7 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
/* Don't print anything after quiesce under OPAL, it crashes OFW */
if (of_platform != PLATFORM_OPAL) {
- prom_printf("Booting Linux via __start() ...\n");
+ prom_printf("Booting Linux via __start() @%lx ...\n", kbase);
prom_debug("->dt_header_start=0x%x\n", hdr);
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc: Print the kernel load address at the end of prom_init
2016-08-10 7:29 [PATCH] powerpc: Print the kernel load address at the end of prom_init Benjamin Herrenschmidt
@ 2016-08-11 11:16 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2016-08-11 11:16 UTC (permalink / raw)
To: Benjamin Herrenschmidt, linuxppc-dev
On Wed, 2016-10-08 at 07:29:29 UTC, Benjamin Herrenschmidt wrote:
> This makes it easier to debug crashes that happen very early before
> the kernel takes over Open Firmware by allowing us to relate the OF
> reported crashing addresses to offsets within the kernel.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/7d70c63c7132eb95e428e94524
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-11 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-10 7:29 [PATCH] powerpc: Print the kernel load address at the end of prom_init Benjamin Herrenschmidt
2016-08-11 11:16 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).