path: root/drivers/bios_emulator/bios.c
diff options
authorLinus Walleij <>2013-04-01 22:14:14 +0000
committerTom Rini <>2013-04-02 16:23:35 -0400
commitb2da80384ed197ea17c1d910813e3c105a9c656c (patch)
tree1c1d4d25a18850ce7c245faffc96609168e06c33 /drivers/bios_emulator/bios.c
parent9fd383724cf49b5fd787c62169569d870857d611 (diff)
biosemu: include <asm/io.h> header
This makes sure we have inline functions such as inb/outb that are used in these two files by including the arch-specific <asm/io.h> header. However the ARM version does not provide the accessors unless the config symbol __io is also defined so add that in front of the include. After this the bios emulator will compile on ARM systems. Signed-off-by: Linus Walleij <>
Diffstat (limited to 'drivers/bios_emulator/bios.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bios_emulator/bios.c b/drivers/bios_emulator/bios.c
index 7cf48792eb..bcc192fb2e 100644
--- a/drivers/bios_emulator/bios.c
+++ b/drivers/bios_emulator/bios.c
@@ -41,6 +41,8 @@
+#define __io
+#include <asm/io.h>
#include <common.h>
#include "biosemui.h"
OpenPOWER on IntegriCloud