[OpenBIOS] [PATCH] ppc: add ROM node to device tree

Cormac O'Brien i.am.cormac.obrien at gmail.com
Wed May 20 23:45:16 CEST 2015


This patch adds a ROM node to the PPC device tree as is required by Mac OS 9.

Based on a patch by John Arbuckle <programmingkidx at gmail.com>

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

---
 arch/ppc/qemu/tree.fs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/ppc/qemu/tree.fs b/arch/ppc/qemu/tree.fs
index 1ed8383..47f800d 100644
--- a/arch/ppc/qemu/tree.fs
+++ b/arch/ppc/qemu/tree.fs
@@ -42,6 +42,16 @@ new-device
 	: close ;
 finish-device
 
+new-device
+	" rom" device-name
+    h# ff800000 encode-int 0 encode-int encode+ " reg" property
+    1 encode-int " #address-cells" property
+    h# ff800000 encode-int
+      h#   800000 encode-int encode+
+      h# ff800000 encode-int encode+
+      " ranges" property
+finish-device
+
 \ -------------------------------------------------------------
 \ /packages
 \ -------------------------------------------------------------
-- 
2.4.1




More information about the OpenBIOS mailing list