Subject: [PATCH] return to OF via trap, not exit

From: Olaf Hering <[email-masked]>
Date: Sat, 4 Mar 2006 20:10:26 +0100

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 <[email-masked]>

 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 */
 		;