instantiate_rtas on Cell sim fails...

David Woodhouse dwmw2 at infradead.org
Thu Dec 8 19:25:19 EST 2005


We never used to check for != 0; we used to check for == PROM_ERROR
instead. And on mambo we get 1, not 0. This makes it work again, but is
it the sim at fault, or the kernel?

--- linux-2.6.14/arch/powerpc/kernel/prom_init.c~	2005-12-07 23:33:20.000000000 +0100
+++ linux-2.6.14/arch/powerpc/kernel/prom_init.c	2005-12-07 23:33:38.000000000 +0100
@@ -1051,7 +1051,7 @@ static void __init prom_instantiate_rtas
 
 	if (call_prom_ret("call-method", 3, 2, &entry,
 			  ADDR("instantiate-rtas"),
-			  rtas_inst, base) != 0
+			  rtas_inst, base) == PROM_ERROR
 	    || entry == 0) {
 		prom_printf(" failed\n");
 		return;

-- 
dwmw2




More information about the Linuxppc64-dev mailing list