aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-05-13 12:10:30 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-05-20 18:10:38 -0400
commit46b82624c95b951e8825fab117d9352faeae0ec8 (patch)
tree02e6dfd8ab8dcacd86ef7b6b08bd2a67d45d6410 /src/config.h
parent9c98517c938d20c38f537d516c71b30bb60c3ea0 (diff)
downloadseabios-46b82624c95b951e8825fab117d9352faeae0ec8.tar.gz
Add mechanism to declare variables as "low mem" and use for extra stack.
Add a mechanism (VARLOW declaration) to make a variable reside in the low memory (e-segment) area. This is useful for runtime variables that need to be accessed from 16bit code and need to be modifiable during runtime. Move the 16bit "extra stack" from the EBDA to the low memory area using this declaration mechanism. Also increase the size of this stack from 512 bytes to 2048 bytes. This also reworks tools/layoutrom.py a bit. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
index 521469b2..23591b97 100644
--- a/src/config.h
+++ b/src/config.h
@@ -39,6 +39,7 @@
#define BUILD_BIOS_ADDR 0xf0000
#define BUILD_BIOS_SIZE 0x10000
#define BUILD_LOWMEM_SIZE 0x8000
+#define BUILD_EXTRA_STACK_SIZE 0x800
// 32KB for shadow ram copying (works around emulator deficiencies)
#define BUILD_BIOS_TMP_ADDR 0x30000
#define BUILD_SMM_INIT_ADDR 0x38000