From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6133] target-ppc: workaround OpenBIOS limitation
Date: Fri, 26 Dec 2008 23:05:24 +0000 [thread overview]
Message-ID: <E1LGLkC-0005mX-3F@cvs.savannah.gnu.org> (raw)
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
reply other threads:[~2008-12-26 23:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LGLkC-0005mX-3F@cvs.savannah.gnu.org \
--to=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).