From bfd72848153b28b69986f2c38eb37c53e99a0f12 Mon Sep 17 00:00:00 2001 From: AlmuHS Date: Sun, 1 Sep 2019 03:08:34 +0200 Subject: improve: added ldt loading after boot cpu --- i386/i386/mp_desc.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.2.3