qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2]PMAC NVRAM cleanup


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH v2]PMAC NVRAM cleanup
Date: Thu, 1 May 2008 19:36:34 +0200


Le 1 mai 08 à 18:36, Laurent Vivier a écrit :

This patch cleanup PowerMac nvram.

It uses structures and functions from hw/firmware_abi.h.
It creates valid partitions and stores nvram in a file.
As OpenHackware uses m48t59 NVRAM instead of PMAC NVRAM, OHW isn't broken.

Regards,
Laurent

diff --git a/hw/mac_nvram.c b/hw/mac_nvram.c
index 7304ac2..fb6cbe2 100644
--- a/hw/mac_nvram.c
+++ b/hw/mac_nvram.c
@@ -23,13 +23,20 @@
  * THE SOFTWARE.
  */
 #include "hw.h"
+#include "firmware_abi.h"
 #include "ppc_mac.h"
 
+#define DEF_SYSTEM_SIZE 0xc10
+
+#define OPENBIOS_PART_SYSTEM   0x70
+#define OPENBIOS_PART_FREE     0x7f

These two lines must be removed...

Regards,
Laurent
----------------------- Laurent Vivier ----------------------
"The best way to predict the future is to invent it."
- Alan Kay






reply via email to

[Prev in Thread] Current Thread [Next in Thread]