summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/include/arch/mmio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/x86/include/arch/mmio.h b/src/arch/x86/include/arch/mmio.h
index c2aa0fb910..b2a37a03dd 100644
--- a/src/arch/x86/include/arch/mmio.h
+++ b/src/arch/x86/include/arch/mmio.h
@@ -5,6 +5,10 @@
#include <stdint.h>
+#ifndef __always_inline
+#define __always_inline inline
+#endif
+
static __always_inline uint8_t read8(const volatile void *addr)
{
return *((volatile uint8_t *)(addr));