[OpenBIOS] [PATCH 5/6] ppc: add CPU reservation-granule-size property

Cormac O'Brien i.am.cormac.obrien at gmail.com
Sat Jun 20 19:49:01 CEST 2015


This patch adds the 'reservation-granule-size' property to the CPU node, as is
required by Mac OS 9.

Signed-off-by: Cormac O'Brien <i.am.cormac.obrien at gmail.com>
---
 arch/ppc/qemu/init.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/ppc/qemu/init.c b/arch/ppc/qemu/init.c
index 5cc45ae..180679c 100644
--- a/arch/ppc/qemu/init.c
+++ b/arch/ppc/qemu/init.c
@@ -302,6 +302,11 @@ cpu_generic_init(const struct cpudef *cpu)
     fword("encode-string");
     push_str("state");
     fword("property");
+
+    PUSH(0x20);
+    fword("encode-int");
+    push_str("reservation-granule-size");
+    fword("property");
 }
 
 static void
-- 
2.4.4




More information about the OpenBIOS mailing list