aboutsummaryrefslogtreecommitdiff
path: root/src/util.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/util.h
parent9c98517c938d20c38f537d516c71b30bb60c3ea0 (diff)
downloadseabios-hppa-46b82624c95b951e8825fab117d9352faeae0ec8.zip
seabios-hppa-46b82624c95b951e8825fab117d9352faeae0ec8.tar.gz
seabios-hppa-46b82624c95b951e8825fab117d9352faeae0ec8.tar.bz2
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/util.h')
-rw-r--r--src/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 04de66b..e0e98f0 100644
--- a/src/util.h
+++ b/src/util.h
@@ -230,6 +230,7 @@ int get_keystroke(int msec);
// stacks.c
u32 call32(void *func, u32 eax, u32 errret);
+extern u8 ExtraStack[];
inline u32 stack_hop(u32 eax, u32 edx, void *func);
extern struct thread_info MainThread;
extern int CanPreempt;