]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
biosemu: include <asm/io.h> header
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Apr 2013 22:14:14 +0000 (22:14 +0000)
committerTom Rini <trini@ti.com>
Tue, 2 Apr 2013 20:23:35 +0000 (16:23 -0400)
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 <linus.walleij@linaro.org>
drivers/bios_emulator/besys.c
drivers/bios_emulator/bios.c

index 84724b712535b2310a0a1771051d9477f723cc5c..ad88a53f0c435683dd4bd521e1df26aab9c917d9 100644 (file)
@@ -47,6 +47,8 @@
 *
 ****************************************************************************/
 
+#define __io
+#include <asm/io.h>
 #include <common.h>
 #include "biosemui.h"
 
index 7cf48792eb7ea98f72264fad70e95cb4318080ec..bcc192fb2e3f1c7201c96d970b0daa00bd39fb21 100644 (file)
@@ -41,6 +41,8 @@
 *
 ****************************************************************************/
 
+#define __io
+#include <asm/io.h>
 #include <common.h>
 #include "biosemui.h"