summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-09-01 03:08:34 +0200
committerAlmuHS <almuhs@github.com>2019-09-01 03:08:34 +0200
commitbfd72848153b28b69986f2c38eb37c53e99a0f12 (patch)
treed89febde83783370fb3a32b0cac3454b38004c08
parent3f85f6355c2a5c33fb2c3d396e3d93771a22b44a (diff)
improve: added ldt loading after boot cpu
-rw-r--r--i386/i386/mp_desc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index c4e6630f..15beb455 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -354,9 +354,16 @@ cpu_setup()
machine_slot[i].cpu_type = CPU_TYPE_PENTIUMPRO;
break;
}
+
+ /*
+ * Initialize and activate the real i386 protected-mode structures.
+ */
gdt_init();
idt_init();
+ ldt_init();
ktss_init();
+
+ /* Add cpu to the kernel */
slave_main();
kmutex_unlock(&ap_config_lock);