From 59c9d8f1193628c28c1a77588816546c1ddeb9bf Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 17 Dec 2022 14:32:24 +0100 Subject: [PATCH] asm -> asm volatile --- kernel/src/arch/x86_64/CPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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