Skip to content

Commit

Permalink
powerpc: Print linux_banner in prom_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Mar 11, 2009
1 parent 7c9583a commit e7943fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/powerpc/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/prom_init_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e7943fb

Please sign in to comment.