From e0b7100f22587a923d91754ae4a81c24872b28f2 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Sep 2025 23:33:24 -0400 Subject: os/amd64: Add md_intoff() and md_inton() Signed-off-by: Ian Moffett --- src/sys/include/arch/amd64/mdcpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sys') diff --git a/src/sys/include/arch/amd64/mdcpu.h b/src/sys/include/arch/amd64/mdcpu.h index 420bdee..a8e1641 100644 --- a/src/sys/include/arch/amd64/mdcpu.h +++ b/src/sys/include/arch/amd64/mdcpu.h @@ -34,6 +34,8 @@ #include #define md_spinwait() __ASMV("pause") +#define md_intoff() __ASMV("cli") +#define md_inton() __ASMV("sti") /* * Represents the machine dependent information -- cgit v1.2.3