diff options
| author | Jason Jin <Jason.jin@freescale.com> | 2007-08-08 08:33:11 +0800 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2007-08-09 23:24:15 +0200 | 
| commit | ce981dc857adfc8036ca2f6d5d5a06c2a8aa77d6 (patch) | |
| tree | dbd86b1fa34958310c5b26336dc996899ec0fc78 /drivers/bios_emulator/biosemu.c | |
| parent | ed8106433522f2ea8933e9808346860d061d7731 (diff) | |
| download | olio-uboot-2014.01-ce981dc857adfc8036ca2f6d5d5a06c2a8aa77d6.tar.xz olio-uboot-2014.01-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/biosemu.c')
| -rw-r--r-- | drivers/bios_emulator/biosemu.c | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/drivers/bios_emulator/biosemu.c b/drivers/bios_emulator/biosemu.c index 06d4ad380..4c3aedf41 100644 --- a/drivers/bios_emulator/biosemu.c +++ b/drivers/bios_emulator/biosemu.c @@ -48,6 +48,8 @@  #include "biosemui.h"  #include <malloc.h> +#if defined(CONFIG_BIOSEMU) +  BE_sysEnv _BE_env = {{0}};  static X86EMU_memFuncs _BE_mem __attribute__((section(".got2"))) = {  	BE_rdb, @@ -368,3 +370,4 @@ int X86API BE_int86x(int intno, RMREGS * in, RMREGS * out, RMSREGS * sregs)  	sregs->gs = M.x86.R_GS;  	return out->x.ax;  } +#endif |