aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/compat
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-11 11:19:23 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-11 11:19:23 +0100
commitae3e4d2c6a982636a7889627bf806c20e3e13f57 (patch)
tree07a4ca9a8b760f51a01835b878c04b30352f349e /xen/common/compat
parenta974b14d790ce883da98ba8094a0c59109bae0b7 (diff)
downloadxen-ae3e4d2c6a982636a7889627bf806c20e3e13f57.tar.gz
xen-ae3e4d2c6a982636a7889627bf806c20e3e13f57.tar.bz2
xen-ae3e4d2c6a982636a7889627bf806c20e3e13f57.zip
Define ABS() library function. Use it.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/compat')
-rw-r--r--xen/common/compat/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/compat/memory.c b/xen/common/compat/memory.c
index 4acbf7447a..2402984f1e 100644
--- a/xen/common/compat/memory.c
+++ b/xen/common/compat/memory.c
@@ -116,7 +116,7 @@ int compat_memory_op(unsigned int cmd, XEN_GUEST_HANDLE(void) compat)
start_extent = cmp.xchg.nr_exchanged;
end_extent = (COMPAT_ARG_XLAT_SIZE - sizeof(*nat.xchg)) /
- (((1U << __builtin_abs(order_delta)) + 1) *
+ (((1U << ABS(order_delta)) + 1) *
sizeof(*space));
if ( end_extent == 0 )
{