aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-03-10 18:15:32 +0100
committerPaul Fagerburg <pfagerburg@chromium.org>2023-03-13 14:01:47 +0000
commit9b9d267f5a31b66c3d7f6514b01885ddb6b42436 (patch)
tree710cf300359926a2d767bdaa91e91c721878a8fd /src/arch
parent2921a2261333aa2481a4c70a1553d36d550e31c7 (diff)
arch/x86/include/arch/mmio.h: Provide __always_inline definition for musl
fix compilation on musl-libc systems by providing an implementation for __always_inline Signed-off-by: Fabian Groffen <grobian@gentoo.org> Change-Id: I01a7eb9ed28e79523623ab362510ec2d93f4a8b7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73667 Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch')
-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));