From 2a9d7b9cc5f82eb60b295e4a689ac20f27dd65cb Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 29 Feb 2024 22:03:12 -0500 Subject: kernel/amd64: machdep: Add wrappers over CLI/STI Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/machdep.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sys/arch') diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 7eb1407..6342aab 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -132,6 +132,18 @@ pre_init(void) gdt_load(&g_gdtr); } +void +intr_mask(void) +{ + __ASMV("cli"); +} + +void +intr_unmask(void) +{ + __ASMV("sti"); +} + void processor_init(void) { -- cgit v1.2.3