]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
powerpc: Print linux_banner in prom_init
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 4 Mar 2009 19:02:01 +0000 (19:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Mar 2009 06:11:33 +0000 (17:11 +1100)
So at least you can see what kernel you're booting if you die
before the kernel prints it mid-way through start_kernel().

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom_init.c
arch/powerpc/kernel/prom_init_check.sh

index 7f1b33d5e30d9baf51ddba748f1b0a0573daf754..4d5ebb46b2c412d965d5c4830af353256930f804 100644 (file)
@@ -2283,6 +2283,8 @@ unsigned long __init prom_init(unsigned long r3, unsigned long r4,
         */
        prom_init_stdout();
 
+       prom_printf("Preparing to boot %s", PTRRELOC((char *)linux_banner));
+
        /*
         * Get default machine type. At this point, we do not differentiate
         * between pSeries SMP and pSeries LPAR
index ea3a2ec03ffafe1a00a946895ee77db5c39b650d..1ac136b128f01fb700e86bcb609863376458336f 100644 (file)
@@ -20,7 +20,7 @@ WHITELIST="add_reloc_offset __bss_start __bss_stop copy_and_flush
 _end enter_prom memcpy memset reloc_offset __secondary_hold
 __secondary_hold_acknowledge __secondary_hold_spinloop __start
 strcmp strcpy strlcpy strlen strncmp strstr logo_linux_clut224
-reloc_got2 kernstart_addr memstart_addr"
+reloc_got2 kernstart_addr memstart_addr linux_banner"
 
 NM="$1"
 OBJ="$2"