From bc883188afb45dec4a3319ae05ebf6caab70f13a Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 27 May 2025 01:26:44 -0400 Subject: kernel: Add md_halt() Signed-off-by: Ian Moffett --- sys/include/arch/amd64/cdefs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/include/arch/amd64') diff --git a/sys/include/arch/amd64/cdefs.h b/sys/include/arch/amd64/cdefs.h index 256fd8b..bab0c89 100644 --- a/sys/include/arch/amd64/cdefs.h +++ b/sys/include/arch/amd64/cdefs.h @@ -41,5 +41,6 @@ #define md_pause() __ASMV("rep; nop") /* (F3 90) PAUSE */ #define md_intoff() __ASMV("cli") /* Clear interrupts */ #define md_inton() __ASMV("sti") /* Enable interrupts */ +#define md_hlt() __ASMV("hlt") /* Halt the processor */ #endif /* !_AMD64_CDEFS_H_ */ -- cgit v1.2.3