From 77bfa15c05ae30b5aed520f5587b8ee6b2b1c446 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Tue, 26 Jul 2011 16:15:41 -0400 Subject: [PATCH] Break user_int64 64-bit operation into two for arm Like the i386, the arm processor is also limited to 32-bit oprations. The user_int64() needs to break the 64-bit access into 32-bit operations. --- tapset/uconversions.stp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tapset/uconversions.stp b/tapset/uconversions.stp index e77ee0186..afdf8c96b 100644 --- a/tapset/uconversions.stp +++ b/tapset/uconversions.stp @@ -411,8 +411,8 @@ function user_uint32:long (addr:long) %{ /* pure */ /* myproc-unprivileged */ * address. Returns zero when user space data is not accessible. */ function user_int64:long (addr:long) %{ /* pure */ /* myproc-unprivileged */ -#if defined __i386__ - /* As with kread() on i386, we must split 64-bit in two. +#if defined (__i386__) || (__arm__) + /* As with kread() on i386 and arm, we must split 64-bit in two. * STP_GET_USER isn't well designed for that, but I don't * want to complicate all the other callers. */ uint32_t value[2]; -- 2.43.5