diff options
Diffstat (limited to 'src/arch/x86/include/arch/hlt.h')
-rw-r--r-- | src/arch/x86/include/arch/hlt.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arch/x86/include/arch/hlt.h b/src/arch/x86/include/arch/hlt.h index 0394ce830d..cf7176ae90 100644 --- a/src/arch/x86/include/arch/hlt.h +++ b/src/arch/x86/include/arch/hlt.h @@ -20,7 +20,9 @@ static void hlt(void) __builtin_hlt(); } #else -static inline __attribute__((always_inline)) void hlt(void) +#include <compiler.h> + +static __always_inline void hlt(void) { asm("hlt"); } |