[OpenBIOS] [PATCH v2] [RFC] More complete PowerPC OpenFirmware emulation -- adding bus-frequency

Alexander von Gluck kallisti5 at unixzen.com
Wed Aug 10 21:53:26 CEST 2011


The patch from before with everything extra stripped due to the push 
back:

Thanks!
  -- Alexander von Gluck


Index: include/arch/common/fw_cfg.h
===================================================================
--- include/arch/common/fw_cfg.h	(revision 1046)
+++ include/arch/common/fw_cfg.h	(working copy)
@@ -44,6 +44,7 @@
  #define FW_CFG_PPC_IS_KVM	(FW_CFG_ARCH_LOCAL + 0x05)
  #define FW_CFG_PPC_KVM_HC	(FW_CFG_ARCH_LOCAL + 0x06)
  #define FW_CFG_PPC_KVM_PID	(FW_CFG_ARCH_LOCAL + 0x07)
+#define FW_CFG_PPC_BUSFREQ      (FW_CFG_ARCH_LOCAL + 0x08)

  #define FW_CFG_INVALID          0xffff

Index: arch/ppc/qemu/init.c
===================================================================
--- arch/ppc/qemu/init.c	(revision 1046)
+++ arch/ppc/qemu/init.c	(working copy)
@@ -260,6 +260,11 @@
      push_str("clock-frequency");
      fword("property");

+    PUSH(fw_cfg_read_i32(FW_CFG_PPC_BUSFREQ));
+    fword("encode-int");
+    push_str("bus-frequency");
+    fword("property");
+
      push_str("running");
      fword("encode-string");
      push_str("state");




More information about the OpenBIOS mailing list