]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Add CONFIG_BIOSEMU define to guard all the bios emulator code
authorJason Jin <Jason.jin@freescale.com>
Wed, 8 Aug 2007 00:33:11 +0000 (08:33 +0800)
committerWolfgang Denk <wd@denx.de>
Thu, 9 Aug 2007 21:24:15 +0000 (23:24 +0200)
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

drivers/bios_emulator/besys.c
drivers/bios_emulator/bios.c
drivers/bios_emulator/biosemu.c
drivers/bios_emulator/x86emu/debug.c
drivers/bios_emulator/x86emu/decode.c
drivers/bios_emulator/x86emu/ops.c
drivers/bios_emulator/x86emu/ops2.c
drivers/bios_emulator/x86emu/prim_ops.c
drivers/bios_emulator/x86emu/sys.c

index 2a8e1a01c1fc948be61fd86f749764e332f748dc..4c4bc8d7ba18ee3c5dc1bac212a377e843a0f07d 100644 (file)
@@ -49,6 +49,7 @@
 
 #include "biosemui.h"
 
+#if defined(CONFIG_BIOSEMU)
 /*------------------------- Global Variables ------------------------------*/
 
 #ifndef __i386__
@@ -717,3 +718,4 @@ void X86API BE_outl(X86EMU_pioAddr port, u32 val)
 #endif
                LOG_outpd(port, val);
 }
+#endif
index ed5437eec94d8daf892656ab856e8cdeb307c642..7aa1bfb2eb60e639b57758f0fee3cf39151451d3 100644 (file)
@@ -43,6 +43,7 @@
 
 #include "biosemui.h"
 
+#if defined(CONFIG_BIOSEMU)
 /*----------------------------- Implementation ----------------------------*/
 
 /****************************************************************************
@@ -319,3 +320,4 @@ void _BE_bios_init(u32 * intrTab)
        bios_intr_tab[0x6D] = int10;
        X86EMU_setupIntrFuncs(bios_intr_tab);
 }
+#endif
index 06d4ad380f3e4ed6676e53a33e64352331052cd9..4c3aedf4130796f5f166e2fb6d21f212e67159ea 100644 (file)
@@ -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
index 0f58a6963f2c43e75a979d122bc14a0a2a0db1e4..915739c5b03f8cad664ff123233c0769360accff 100644 (file)
@@ -40,6 +40,8 @@
 #include "x86emu/x86emui.h"
 #include <stdarg.h>
 
+#if defined(CONFIG_BIOSEMU)
+
 /*----------------------------- Implementation ----------------------------*/
 
 #ifdef DEBUG
@@ -459,3 +461,5 @@ void x86emu_dump_xregs(void)
                printk("NC ");
        printk("\n");
 }
+
+#endif
index 1e2dcfe4b2b5e90ce10d76a30e9d09ea72ad52a5..879f0a06d17367a7611f5ce6dc1086e36ad1abbb 100644 (file)
@@ -39,6 +39,8 @@
 
 #include "x86emu/x86emui.h"
 
+#if defined(CONFIG_BIOSEMU)
+
 /*----------------------------- Implementation ----------------------------*/
 
 /****************************************************************************
@@ -1142,3 +1144,5 @@ unsigned decode_rmXX_address(int mod, int rm)
     return decode_rm01_address(rm);
   return decode_rm10_address(rm);
 }
+
+#endif
index d1380ceec0099526d1552a5bc8a968a17f1ae79a..d334fb5b1cf311bd2b7922c2682aac03c03fd50b 100644 (file)
@@ -76,6 +76,9 @@
 ****************************************************************************/
 
 #include "x86emu/x86emui.h"
+
+#if defined(CONFIG_BIOSEMU)
+
 /*----------------------------- Implementation ----------------------------*/
 
 /* constant arrays to do several instructions in just one function */
@@ -5429,3 +5432,5 @@ void (*x86emu_optab[256])(u8) __attribute__ ((section(".got2"))) =
 /*  0xfe */ x86emuOp_opcFE_byte_RM,
 /*  0xff */ x86emuOp_opcFF_word_RM,
 };
+
+#endif
index 631a340ed2bd38a094e675bf28801a7df0a4467b..81c0d49a33397d116da4c5dcd19684446741d6fa 100644 (file)
@@ -46,6 +46,8 @@
 
 #include "x86emu/x86emui.h"
 
+#if defined(CONFIG_BIOSEMU)
+
 /*----------------------------- Implementation ----------------------------*/
 
 /****************************************************************************
@@ -1768,3 +1770,5 @@ void (*x86emu_optab2[256])(u8) __attribute__((section(".got2"))) =
 /*  0xfe */ x86emuOp2_illegal_op,
 /*  0xff */ x86emuOp2_illegal_op,
 };
+
+#endif
index e0827d7478263a784d633c0f527c109beb10ded0..c1152eae341d823f8ce8a1242364f9b21a5079b7 100644 (file)
 #define PRIM_OPS_NO_REDEFINE_ASM
 #include "x86emu/x86emui.h"
 
+#if defined(CONFIG_BIOSEMU)
+
 /*------------------------- Global Variables ------------------------------*/
 
 static u32 x86emu_parity_tab[8] =
@@ -2443,3 +2445,5 @@ DB( if (CHECK_SP_ACCESS())
     M.x86.R_SP += 4;
     return res;
 }
+
+#endif
index bb7fcd93a940401a910bd7e2bc1be969f1025192..566389f5862063a51da2e3cd89aa711c13f97033 100644 (file)
@@ -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