aboutsummaryrefslogtreecommitdiffstats
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2015-07-14 15:44:26 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-07-14 15:47:39 -0400
commit8b9942fa3368139b089dc3fea0549cc3282b5c12 (patch)
tree39d57e05e25a6529aa5f06b955d43e6459ff2aa0 /src/post.c
parent6a668b35e1691de8ebccf9c8b627c58f333cea7a (diff)
downloadseabios-8b9942fa3368139b089dc3fea0549cc3282b5c12.tar.gz
Don't enable interrupts prior to IVT and PIC setup
The machine may crash if an interrupt occurs prior to the setup of the interrupt vector table (IVT) and programmable interrupt controller (PIC). This patch makes sure that interrupts remain disabled until these components are setup. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/post.c')
-rw-r--r--src/post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post.c b/src/post.c
index 6157b507..8cb7b7cb 100644
--- a/src/post.c
+++ b/src/post.c
@@ -124,7 +124,6 @@ interface_init(void)
bda_init();
// Other interfaces
- thread_init();
boot_init();
bios32_init();
pmm_init();
@@ -167,6 +166,7 @@ platform_hardware_setup(void)
// Init base pc hardware.
pic_setup();
+ thread_setup();
mathcp_setup();
timer_setup();
clock_setup();