From 9cfd49d1f39c0a32e13e405efc3903f1f0e4ff19 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 1 Jun 2025 19:04:47 -0400 Subject: kernel/amd64: cdefs: Add __invlpg() asm wrapper Signed-off-by: Ian Moffett --- sys/include/arch/amd64/cdefs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/include/arch') diff --git a/sys/include/arch/amd64/cdefs.h b/sys/include/arch/amd64/cdefs.h index bab0c89..0a20324 100644 --- a/sys/include/arch/amd64/cdefs.h +++ b/sys/include/arch/amd64/cdefs.h @@ -43,4 +43,13 @@ #define md_inton() __ASMV("sti") /* Enable interrupts */ #define md_hlt() __ASMV("hlt") /* Halt the processor */ +/* + * AMD64 specific defines + */ +#define __invlpg(VA) \ + __ASMV("invlpg %0" \ + : \ + : "m" ((VA)) \ + : "memory") + #endif /* !_AMD64_CDEFS_H_ */ -- cgit v1.2.3