qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] seabios: correct setting of datalow_base for large rom images
@ 2012-06-05 16:09 Jason Baron
  2012-06-06  0:09 ` Kevin O'Connor
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Baron @ 2012-06-05 16:09 UTC (permalink / raw)
  To: kevin; +Cc: qemu-devel, mst

I've been creating 256kb rom images with larger acpi tables for second level
buses. After a recent re-base, my rom images no longer built. Bisected to:

commit 46b82624c95b951e8825fab117d9352faeae0ec8
Author: Kevin O'Connor <kevin@koconnor.net>
Date:   Sun May 13 12:10:30 2012 -0400

    Add mechanism to declare variables as "low mem" and use for extra stack.


Where sec32low_top is greater than datalow_base. Currently, datalow_base is
calculated by subtracting a 64kb offset. Updating it to 128kb, resolved this
issue for me, while still continuing to create smaller rom images as expected.

Signed-off-by: Jason Baron <jbaron@redhat.com>
---
 tools/layoutrom.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/layoutrom.py b/tools/layoutrom.py
index 74b410f..01f9bed 100755
--- a/tools/layoutrom.py
+++ b/tools/layoutrom.py
@@ -219,10 +219,10 @@ def doLayout(sections, genreloc):
     li.sections32low = getSectionsCategory(sections, '32low')
     if genreloc:
         sec32low_top = li.sec32init_start
-        datalow_base = min(BUILD_BIOS_ADDR, li.sec32flat_start) - 64*1024
+        datalow_base = min(BUILD_BIOS_ADDR, li.sec32flat_start) - 128*1024
     else:
         sec32low_top = min(BUILD_BIOS_ADDR, li.sec32init_start)
-        datalow_base = sec32low_top - 64*1024
+        datalow_base = sec32low_top - 128*1024
     li.datalow_base = max(BUILD_ROM_START, alignpos(datalow_base, 2*1024))
     li.sec32low_start, li.sec32low_align = setSectionsStart(
         li.sections32low, sec32low_top, 16, segoffset=li.datalow_base)
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-07 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05 16:09 [Qemu-devel] [PATCH] seabios: correct setting of datalow_base for large rom images Jason Baron
2012-06-06  0:09 ` Kevin O'Connor
2012-06-07 13:46   ` Jason Baron

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).