summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-13 23:33:24 -0400
committerIan Moffett <ian@osmora.org>2025-09-13 23:34:25 -0400
commite0b7100f22587a923d91754ae4a81c24872b28f2 (patch)
tree2bff48c6e81a1f046691417dfdef913665be3235
parenta2b6828305745124fcfc3ed8ca7d0089ed12c6db (diff)
os/amd64: Add md_intoff() and md_inton()
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--src/sys/include/arch/amd64/mdcpu.h2
1 files changed, 2 insertions, 0 deletions
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 <sys/cdefs.h>
#define md_spinwait() __ASMV("pause")
+#define md_intoff() __ASMV("cli")
+#define md_inton() __ASMV("sti")
/*
* Represents the machine dependent information