aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-05-16 11:36:43 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-05-16 11:36:43 -0400
commit5869a6b58745e3e83f4b9257cf6f64216d5e61dc (patch)
treec6a532f48a31438c0f289205cd4d60a54af1409b
parentd8b308077e984d4baf852448536ae59307efd808 (diff)
downloadseabios-5869a6b58745e3e83f4b9257cf6f64216d5e61dc.zip
seabios-5869a6b58745e3e83f4b9257cf6f64216d5e61dc.tar.gz
seabios-5869a6b58745e3e83f4b9257cf6f64216d5e61dc.tar.bz2
stacks: Make sure to initialize Call16Data
Initialize the Call16Data at startup - otherwise some early yield() calls may check for interrupts without using the preferred A20 setting. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--src/stacks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stacks.c b/src/stacks.c
index ef6a707..9fec2fb 100644
--- a/src/stacks.c
+++ b/src/stacks.c
@@ -496,6 +496,7 @@ void
thread_setup(void)
{
CanInterrupt = 1;
+ call16_override(1);
if (! CONFIG_THREADS)
return;
ThreadControl = romfile_loadint("etc/threads", 1);