[OpenBIOS] [PATCH] arch/ppc/qemu: Rename root node for Macs to match Apple
BALATON Zoltan
balaton at eik.bme.hu
Tue Jun 3 22:55:31 CEST 2014
Apple calls the root node of the device tree "device-tree" and MorphOS
relies on this to decide what properties to get. Make it happy.
Signed-off-by: BALATON Zoltan <balaton at eik.bme.hu>
---
openbios-devel/arch/ppc/qemu/init.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/openbios-devel/arch/ppc/qemu/init.c b/openbios-devel/arch/ppc/qemu/init.c
index 4fe8b72..8d5ef8e 100644
--- a/openbios-devel/arch/ppc/qemu/init.c
+++ b/openbios-devel/arch/ppc/qemu/init.c
@@ -734,6 +734,12 @@ arch_of_init(void)
push_str("/");
fword("find-device");
+ /* Apple calls the root node device-tree */
+ if (is_apple()) {
+ push_str("device-tree");
+ fword("device-name");
+ }
+
switch(machine_id) {
case ARCH_HEATHROW: /* OldWorld */
--
1.8.1.5
More information about the OpenBIOS
mailing list