summaryrefslogtreecommitdiffstats
path: root/drivers/bios_emulator/x86emu/sys.c
diff options
context:
space:
mode:
authorJason Jin <Jason.jin@freescale.com>2007-08-08 08:33:11 +0800
committerWolfgang Denk <wd@denx.de>2007-08-09 23:24:15 +0200
commitce981dc857adfc8036ca2f6d5d5a06c2a8aa77d6 (patch)
treedbd86b1fa34958310c5b26336dc996899ec0fc78 /drivers/bios_emulator/x86emu/sys.c
parented8106433522f2ea8933e9808346860d061d7731 (diff)
downloadblackbird-obmc-uboot-ce981dc857adfc8036ca2f6d5d5a06c2a8aa77d6.tar.gz
blackbird-obmc-uboot-ce981dc857adfc8036ca2f6d5d5a06c2a8aa77d6.zip
Add CONFIG_BIOSEMU define to guard all the bios emulator code
Signed-off-by: Jason Jin <Jason.jin@freescale.com> This patch fix the compile issue on the board that did not enable the bios emulator
Diffstat (limited to 'drivers/bios_emulator/x86emu/sys.c')
-rw-r--r--drivers/bios_emulator/x86emu/sys.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/bios_emulator/x86emu/sys.c b/drivers/bios_emulator/x86emu/sys.c
index bb7fcd93a9..566389f586 100644
--- a/drivers/bios_emulator/x86emu/sys.c
+++ b/drivers/bios_emulator/x86emu/sys.c
@@ -41,6 +41,8 @@
#include "x86emu/x86emui.h"
+#if defined(CONFIG_BIOSEMU)
+
/*------------------------- Global Variables ------------------------------*/
X86EMU_sysEnv _X86EMU_env; /* Global emulator machine state */
@@ -320,3 +322,5 @@ void X86EMU_prepareForInt(int num)
M.x86.R_IP = mem_access_word(num * 4);
M.x86.intr = 0;
}
+
+#endif
OpenPOWER on IntegriCloud