summaryrefslogtreecommitdiffstats
path: root/hwaccess_x86_io.c
diff options
context:
space:
mode:
authorThomas Heijligen <thomas.heijligen@secunet.com>2022-11-18 22:53:56 +0100
committerFelix Singer <felixsinger@posteo.net>2022-11-23 06:53:09 +0000
commita2e5a7d75bab2d38ea295071300fba4cad8afc50 (patch)
tree2fb97ad908d30a81ebcec3fb3db69ff757c1f498 /hwaccess_x86_io.c
parent8d0816faa55c2d52f92dcf4758935a807f71e4ba (diff)
downloadflashrom-a2e5a7d75bab2d38ea295071300fba4cad8afc50.tar.gz
flashrom-a2e5a7d75bab2d38ea295071300fba4cad8afc50.tar.bz2
flashrom-a2e5a7d75bab2d38ea295071300fba4cad8afc50.zip
libpayload: Fix compiling bugs
hwaccess_physmap.c: make `void *sys_physmap(()` static hwaccess_x86_io.c: Add missing include Change-Id: I5062c5a62b90f7a189488f3f569dc357bd2cb85f Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/69831 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'hwaccess_x86_io.c')
-rw-r--r--hwaccess_x86_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hwaccess_x86_io.c b/hwaccess_x86_io.c
index c3ad31396..a883ed418 100644
--- a/hwaccess_x86_io.c
+++ b/hwaccess_x86_io.c
@@ -134,6 +134,8 @@
#endif
#if defined(__LIBPAYLOAD__)
+#include <arch/io.h>
+
#define IO_PORT_PERMISSION USE_DUMMY
#define IO_PORT_FUNCTION USE_LIBC_TARGET_LAST
#endif