]> git.sur5r.net Git - u-boot/blobdiff - drivers/bios_emulator/x86emu/prim_ops.c
efi_loader: implement event groups
[u-boot] / drivers / bios_emulator / x86emu / prim_ops.c
index c1152eae341d823f8ce8a1242364f9b21a5079b7..5f6c795fb7ffc8f45334eac7dca5cca2a916ae10 100644 (file)
 *
 ****************************************************************************/
 
+#include <common.h>
+
 #define PRIM_OPS_NO_REDEFINE_ASM
 #include "x86emu/x86emui.h"
 
-#if defined(CONFIG_BIOSEMU)
-
 /*------------------------- Global Variables ------------------------------*/
 
 static u32 x86emu_parity_tab[8] =
@@ -118,11 +118,6 @@ static u32 x86emu_parity_tab[8] =
 
 #define PARITY(x)   (((x86emu_parity_tab[(x) / 32] >> ((x) % 32)) & 1) == 0)
 #define XOR2(x)            (((x) ^ ((x)>>1)) & 0x1)
-/*----------------------------- Implementation ----------------------------*/
-int abs(int v)
-{
-       return (v>0)?v:-v;
-}
 
 /*----------------------------- Implementation ----------------------------*/
 
@@ -2445,5 +2440,3 @@ DB( if (CHECK_SP_ACCESS())
     M.x86.R_SP += 4;
     return res;
 }
-
-#endif