[PATCH] return to OF via trap, not exit
Olaf Hering
olh at suse.de
Sun Mar 5 06:10:26 EST 2006
Do not call prom exit prom_panic. It clears the screen and the exit message is lost.
On some (or all?) pmacs it causes another crash when OF tries to print the
date and time in its banner.
Signed-off-by: Olaf Hering <olh at suse.de>
arch/powerpc/kernel/prom_init.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: linux-2.6.16-rc5-olh/arch/powerpc/kernel/prom_init.c
===================================================================
--- linux-2.6.16-rc5-olh.orig/arch/powerpc/kernel/prom_init.c
+++ linux-2.6.16-rc5-olh/arch/powerpc/kernel/prom_init.c
@@ -398,7 +398,9 @@ static void __init __attribute__((noretu
#endif
prom_print(reason);
/* ToDo: should put up an SRC here on p/iSeries */
- call_prom("exit", 0, 0);
+ /* Do not call exit because it clears the screen on pmac
+ * it also causes some sort of double-fault on early pmacs */
+ asm("trap\n");
for (;;) /* should never get here */
;
More information about the Linuxppc-dev
mailing list