summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-15 03:56:39 (GMT)
committerSimon Glass <sjg@chromium.org>2014-11-25 14:11:16 (GMT)
commitad6edca379117d52da373818a5db3027da2ad14b (patch)
treedbee60341b51e7a2ae7e6af5953f4d81d5644972 /drivers/bios_emulator/include
parent62d0c5e15347f0ab9998d8bac2845be0d441c8b1 (diff)
downloadu-boot-ad6edca379117d52da373818a5db3027da2ad14b.tar.xz
bios_emulator: Allow x86 to use the emulator
There is an implicit assumption that x86 machines want to use raw I/O in the BIOS emulator, but this should be selectable. Add an CONFIG_X86EMU_RAW_IO option to control it instead. Also fix a few bugs which cause warnings on x86 and adjust the Makefile to remove the assumption that only PowerPC uses the emulator. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/bios_emulator/include')
-rw-r--r--drivers/bios_emulator/include/x86emu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bios_emulator/include/x86emu.h b/drivers/bios_emulator/include/x86emu.h
index a70a768..278f669 100644
--- a/drivers/bios_emulator/include/x86emu.h
+++ b/drivers/bios_emulator/include/x86emu.h
@@ -53,9 +53,9 @@ typedef u16 X86EMU_pioAddr;
/*---------------------- Macros and type definitions ----------------------*/
-#if defined (CONFIG_ARM)
+#if defined(CONFIG_ARM)
#define GAS_LINE_COMMENT "@"
-#elif defined(CONFIG_MIPS) || defined(CONFIG_PPC)
+#elif defined(CONFIG_MIPS) || defined(CONFIG_PPC) || defined(CONFIG_X86)
#define GAS_LINE_COMMENT "#"
#elif defined (CONFIG_SH)
#define GAS_LINE_COMMENT "!"