diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-13 23:03:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-13 23:03:25 -0400 |
commit | b1c7080563a3699016f2ad063f8c8842264ec071 (patch) | |
tree | b64810cc26340f7592166e4779db1be14f76d805 /src/sys/include/arch/amd64/mdcpu.h | |
parent | 1e011e0fc547238775c6957f9e054ca9e2975a65 (diff) |
os/amd64: mdcpu: Add md_spinwait() macro
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/arch/amd64/mdcpu.h')
-rw-r--r-- | src/sys/include/arch/amd64/mdcpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <sys/types.h> +#include <sys/cdefs.h> + +#define md_spinwait() __ASMV("pause") /* * Represents the machine dependent information |