execute ltr in position where it doesnt fault
This commit is contained in:
@@ -16,9 +16,13 @@ extern "C" [[noreturn]] void kernel_init() {
|
||||
// Initialize PICs
|
||||
PIC::initialize();
|
||||
|
||||
// Call global constructors
|
||||
// Call global constructors
|
||||
CSU::initializer();
|
||||
|
||||
//Select 5th Segment in GDT. 5<<3 == 0x28
|
||||
asm volatile ("mov $0x28, %ax");
|
||||
asm("ltr %ax");
|
||||
|
||||
// Initialize ACPI
|
||||
if (!ACPI::init()) {
|
||||
DBG_VERBOSE << "No ACPI!";
|
||||
|
||||
Reference in New Issue
Block a user