aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-04-16 08:57:02 +0200
committerGerd Hoffmann <kraxel@redhat.com>2021-06-04 08:05:08 +0200
commit7292e4a0a8f58333ccbd2d0d47242f9865083c9c (patch)
tree991632cc6bb46cb34131718f4b28a921ea4b9832 /scripts
parent81433aa8a19b36f9e3d50697608c93d8a28bf772 (diff)
downloadseabios-hppa-7292e4a0a8f58333ccbd2d0d47242f9865083c9c.zip
seabios-hppa-7292e4a0a8f58333ccbd2d0d47242f9865083c9c.tar.gz
seabios-hppa-7292e4a0a8f58333ccbd2d0d47242f9865083c9c.tar.bz2
Increase BUILD_MIN_BIOSTABLE for large roms
BUILD_MIN_BIOSTABLE reserves space in the f-segment. Some data structures -- for example disk drives known to seabios -- must be stored there, so the space available here limits the number of devices seabios is able to manage. This patch sets BUILD_MIN_BIOSTABLE to 8k for bios images being 256k or larger in size. 32bit code is moved off in that case, so we have more room in the f-segment then. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/layoutrom.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py
index 6616721..abebf02 100755
--- a/scripts/layoutrom.py
+++ b/scripts/layoutrom.py
@@ -651,6 +651,10 @@ def main():
# Read kconfig config file
config = scanconfig(cfgfile)
+ # larger roms have more room in the f-segment due to moving out 32bit code
+ if config.get('CONFIG_ROM_SIZE') >= 256:
+ BUILD_MIN_BIOSTABLE = 8192
+
# Figure out which sections to keep.
allsections = info16[0] + info32seg[0] + info32flat[0]
symbols = {'16': info16[1], '32seg': info32seg[1], '32flat': info32flat[1]}