* [Qemu-devel] [6133] target-ppc: workaround OpenBIOS limitation
@ 2008-12-26 23:05 Aurelien Jarno
0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2008-12-26 23:05 UTC (permalink / raw)
To: qemu-devel
Revision: 6133
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6133
Author: aurel32
Date: 2008-12-26 23:05:23 +0000 (Fri, 26 Dec 2008)
Log Message:
-----------
target-ppc: workaround OpenBIOS limitation
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Modified Paths:
--------------
trunk/hw/mac_nvram.c
Modified: trunk/hw/mac_nvram.c
===================================================================
--- trunk/hw/mac_nvram.c 2008-12-26 23:05:15 UTC (rev 6132)
+++ trunk/hw/mac_nvram.c 2008-12-26 23:05:23 UTC (rev 6133)
@@ -43,6 +43,8 @@
uint8_t *data;
};
+#define DEF_SYSTEM_SIZE 0xc10
+
/* Direct access to NVRAM */
uint32_t macio_nvram_read (void *opaque, uint32_t addr)
{
@@ -151,6 +153,10 @@
nvr->data[end++] = '\0';
end = start + ((end - start + 15) & ~15);
+ /* XXX: OpenBIOS is not able to grow up a partition. Leave some space for
+ new variables. */
+ if (end < DEF_SYSTEM_SIZE)
+ end = DEF_SYSTEM_SIZE;
OpenBIOS_finish_partition(part_header, end - start);
// free partition
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-12-26 23:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-26 23:05 [Qemu-devel] [6133] target-ppc: workaround OpenBIOS limitation Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).