diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-05-13 12:10:30 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-05-20 18:10:38 -0400 |
commit | 46b82624c95b951e8825fab117d9352faeae0ec8 (patch) | |
tree | 02e6dfd8ab8dcacd86ef7b6b08bd2a67d45d6410 /src/util.h | |
parent | 9c98517c938d20c38f537d516c71b30bb60c3ea0 (diff) | |
download | seabios-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |