diff --git a/kernel/src/arch/x86_64/CPU.cpp b/kernel/src/arch/x86_64/CPU.cpp index dd63b84d..0338fd96 100644 --- a/kernel/src/arch/x86_64/CPU.cpp +++ b/kernel/src/arch/x86_64/CPU.cpp @@ -288,7 +288,7 @@ static void setup_idt() static IDTR idtr; idtr.limit = 0x0FFF; idtr.offset = (u64)idt; - asm("lidt %0" : : "m"(idtr)); + asm volatile("lidt %0" : : "m"(idtr)); } // Interrupt handling