aboutsummaryrefslogtreecommitdiffstats
path: root/src/asm-offsets.c
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/asm-offsets.c
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/asm-offsets.c')
-rw-r--r--src/asm-offsets.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/asm-offsets.c b/src/asm-offsets.c
index 5035cef8..b98f3b5a 100644
--- a/src/asm-offsets.c
+++ b/src/asm-offsets.c
@@ -2,7 +2,6 @@
#include "gen-defs.h" // OFFSET
#include "bregs.h" // struct bregs
-#include "biosvar.h" // struct bios_data_area_s
/* workaround for a warning with -Wmissing-prototypes */
void foo(void) VISIBLE16;
@@ -21,11 +20,4 @@ void foo(void)
OFFSET(BREGS_edi, bregs, edi);
OFFSET(BREGS_flags, bregs, flags);
OFFSET(BREGS_code, bregs, code);
-
- COMMENT("BDA");
- OFFSET(BDA_ebda_seg, bios_data_area_s, ebda_seg);
-
- COMMENT("EBDA");
- DEFINE(EBDA_OFFSET_TOP_STACK, EBDA_OFFSET_TOP_STACK);
- DEFINE(EBDA_SEGMENT_START, EBDA_SEGMENT_START);
}