]> 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 e0827d7478263a784d633c0f527c109beb10ded0..5f6c795fb7ffc8f45334eac7dca5cca2a916ae10 100644 (file)
@@ -97,6 +97,8 @@
 *
 ****************************************************************************/
 
+#include <common.h>
+
 #define PRIM_OPS_NO_REDEFINE_ASM
 #include "x86emu/x86emui.h"
 
@@ -116,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 ----------------------------*/