Skip to contentSkip to conversation

PPC64 call ibm,os-term only if its available

PATCH New Paul Mackerras 1 participant 1 message Nov 15, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC64 call ibm,os-term only if its available

This patch is from Olaf Hering.

The rtas property 'ibm,os-term' is not available on JS20, a panic will print:

unable to mount root filesystem on /dev/hda

Kernel panic - not syncing: Attempted to kill init!
 <0>ibm,os-term call failed -1

Rebooting in 42 seconds..

arch/ppc64/kernel/rtas.c +3 -0
diff -purN linux-2.6.10-rc1-bk15.orig/arch/ppc64/kernel/rtas.c linux-2.6.10-rc1-bk15.ibm,os-term/arch/ppc64/kernel/rtas.c
@@ -439,6 +439,9 @@ void rtas_os_term(char *str)
 {
 	int status;
 
+	if (RTAS_UNKNOWN_SERVICE == rtas_token("ibm,os-term"))
+		return;
+
 	snprintf(rtas_os_term_buf, 2048, "OS panic: %s", str);
 
 	do {