From b1c7080563a3699016f2ad063f8c8842264ec071 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Sep 2025 23:03:25 -0400 Subject: os/amd64: mdcpu: Add md_spinwait() macro Signed-off-by: Ian Moffett --- src/sys/include/arch/amd64/mdcpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sys/include/arch/amd64/mdcpu.h') diff --git a/src/sys/include/arch/amd64/mdcpu.h b/src/sys/include/arch/amd64/mdcpu.h index 98ecc16..420bdee 100644 --- a/src/sys/include/arch/amd64/mdcpu.h +++ b/src/sys/include/arch/amd64/mdcpu.h @@ -31,6 +31,9 @@ #define _MACHINE_MDCPU_H_ 1 #include +#include + +#define md_spinwait() __ASMV("pause") /* * Represents the machine dependent information -- cgit v1.2.3