aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-05-28 12:59:58 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-05-28 23:39:49 -0400
commitbf2e8c2a304c1aafc612e89deaaa6066d6cdb3f6 (patch)
treedc8972dcdc2f52fdc4fa30f0699f739cecd092c6 /src/util.h
parent2f898d5eae41c7bec54ab60c3ea25f200d46728d (diff)
downloadseabios-hppa-bf2e8c2a304c1aafc612e89deaaa6066d6cdb3f6.zip
seabios-hppa-bf2e8c2a304c1aafc612e89deaaa6066d6cdb3f6.tar.gz
seabios-hppa-bf2e8c2a304c1aafc612e89deaaa6066d6cdb3f6.tar.bz2
Make the extra stack re-entrant and "hop back" to check for irqs.
When on the extra stack and it's necessary to check for irqs, switch back to the original caller's stack to check for irqs. Make the extra stack re-entrant, so that a new user of the extra stack wont collide with an existing user. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index f4a5ac8..a4fabd5 100644
--- a/src/util.h
+++ b/src/util.h
@@ -221,7 +221,7 @@ void nullTrailingSpace(char *buf);
int get_keystroke(int msec);
// stacks.c
-extern u8 ExtraStack[];
+extern u8 ExtraStack[], *StackPos;
inline u32 stack_hop(u32 eax, u32 edx, void *func);
u32 call32(void *func, u32 eax, u32 errret);
struct bregs;