public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] biosemu: include <asm/io.h> header
@ 2013-04-02  8:14 Linus Walleij
  2013-04-02  8:56 ` Albert ARIBAUD
  2013-04-03 15:30 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 10+ messages in thread
From: Linus Walleij @ 2013-04-02  8:14 UTC (permalink / raw)
  To: u-boot

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 | 2 ++
 drivers/bios_emulator/bios.c  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c
index 84724b7..ad88a53 100644
--- a/drivers/bios_emulator/besys.c
+++ b/drivers/bios_emulator/besys.c
@@ -47,6 +47,8 @@
 *
 ****************************************************************************/
 
+#define __io
+#include <asm/io.h>
 #include <common.h>
 #include "biosemui.h"
 
diff --git a/drivers/bios_emulator/bios.c b/drivers/bios_emulator/bios.c
index 7cf4879..bcc192f 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"
 
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-04 20:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02  8:14 [U-Boot] [PATCH] biosemu: include <asm/io.h> header Linus Walleij
2013-04-02  8:56 ` Albert ARIBAUD
2013-04-02 10:09   ` Linus Walleij
2013-04-02 10:32     ` Albert ARIBAUD
2013-04-03 16:02       ` Tom Rini
2013-04-03 17:07         ` Linus Walleij
2013-04-03 22:05           ` Tom Rini
2013-04-04  5:59             ` Linus Walleij
2013-04-04 20:14               ` Tom Rini
2013-04-03 15:30 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox