[OpenBIOS] [PATCH] ppc: add properties to RTAS node

Cormac O'Brien i.am.cormac.obrien at gmail.com
Thu May 21 19:04:58 CEST 2015


This patch adds properties to the RTAS node to allow Mac OS 9 to continue
its boot process. This is likely only a temporary fix, and the actual RTAS
will need to be implemented.

Signed-off-by: Cormac O'Brien <i.am.cormac.obrien at gmail.com>

---
 arch/ppc/qemu/init.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c
index 4fe8b72..620f942 100644
--- a/arch/ppc/qemu/init.c
+++ b/arch/ppc/qemu/init.c
@@ -853,6 +853,22 @@ arch_of_init(void)
                 size *= 2;
             set_property(ph, "rtas-size", (char*)&size, sizeof(size));
             set_int_property(ph, "rtas-version", is_apple() ? 0x41 : 1);
+            set_int_property(ph, "rtas-error-log-max", 0x28);
+            set_int_property(ph, "rtas-event-scan-rate", 0x0);
+            set_int_property(ph, "get-time-for-power-on", 0xabcdef1e);
+            set_int_property(ph, "system-reboot", 0xabcdef15);
+            set_int_property(ph, "power-off", 0xabcdef12);
+            set_int_property(ph, "set-indicator", 0xabcdef0c);
+            set_int_property(ph, "write-pci-config", 0xabcdef0a);
+            set_int_property(ph, "read-pci-config", 0xabcdef09);
+            set_int_property(ph, "check-exception", 0xabcdef08);
+            set_int_property(ph, "event-scan", 0xabcdef07);
+            set_int_property(ph, "set-time-for-power-on", 0xabcdef06);
+            set_int_property(ph, "set-time-of-day", 0xabcdef05);
+            set_int_property(ph, "get-time-of-day", 0xabcdef04);
+            set_int_property(ph, "nvram-store", 0xabcdef03);
+            set_int_property(ph, "nvram-fetch", 0xabcdef02);
+            set_int_property(ph, "restart-rtas", 0xabcdef01);
         }
         break;
     }
-- 
2.4.1




More information about the OpenBIOS mailing list