summaryrefslogtreecommitdiff
path: root/drivers/bios_emulator/include
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2008-02-15 19:09:01 (GMT)
committerWolfgang Denk <wd@denx.de>2008-02-15 23:31:16 (GMT)
commit30c6a241e88499f536e86d325759e29ba00ff67f (patch)
tree793520df08f329a19579254bf1aa3f01690c03ed /drivers/bios_emulator/include
parent45da195cf675d0b4054aeeabf7b9c0daf798841d (diff)
downloadu-boot-30c6a241e88499f536e86d325759e29ba00ff67f.tar.xz
Wipe out assembler warnings while compiling x86 biosemu
This patch tries to get rid of some assembler warnings about changed .got2 section type while compiling x86 bios emulator code. Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/bios_emulator/include')
-rw-r--r--drivers/bios_emulator/include/x86emu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/bios_emulator/include/x86emu.h b/drivers/bios_emulator/include/x86emu.h
index 6004beb..a70a768 100644
--- a/drivers/bios_emulator/include/x86emu.h
+++ b/drivers/bios_emulator/include/x86emu.h
@@ -53,6 +53,16 @@ typedef u16 X86EMU_pioAddr;
/*---------------------- Macros and type definitions ----------------------*/
+#if defined (CONFIG_ARM)
+#define GAS_LINE_COMMENT "@"
+#elif defined(CONFIG_MIPS) || defined(CONFIG_PPC)
+#define GAS_LINE_COMMENT "#"
+#elif defined (CONFIG_SH)
+#define GAS_LINE_COMMENT "!"
+#endif
+
+#define GOT2_TYPE ".got2,\"aw\"\t"GAS_LINE_COMMENT
+
#pragma pack(1)
/****************************************************************************