aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaeyong Yoo <jaeyong.yoo@samsung.com>2013-10-04 13:44:02 +0900
committerIan Campbell <ian.campbell@citrix.com>2013-10-10 12:50:31 +0100
commite9ee35826e46e4f9a40f9fdafcc609016cb2a23b (patch)
treec4bddb9dda1536f35be857f14f6ad13d2a72cf08
parent5814c599256907d53a3c99ad530bad2ed2565d9e (diff)
downloadxen-e9ee35826e46e4f9a40f9fdafcc609016cb2a23b.tar.gz
xen-e9ee35826e46e4f9a40f9fdafcc609016cb2a23b.tar.bz2
xen-e9ee35826e46e4f9a40f9fdafcc609016cb2a23b.zip
xen/arm: Fixing clear_guest_offset macro
Fix the the broken macro 'clear_guest_offset' in arm. Signed-off-by: Jaeyong Yoo <jaeyong.yoo@samsung.com> Reviewed-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
-rw-r--r--xen/include/asm-arm/guest_access.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/include/asm-arm/guest_access.h b/xen/include/asm-arm/guest_access.h
index 34aae14f48..8ff088f39a 100644
--- a/xen/include/asm-arm/guest_access.h
+++ b/xen/include/asm-arm/guest_access.h
@@ -77,8 +77,9 @@ unsigned long raw_clear_guest(void *to, unsigned len);
* Clear an array of objects in guest context via a guest handle,
* specifying an offset into the guest array.
*/
-#define clear_guest_offset(hnd, off, ptr, nr) ({ \
- raw_clear_guest(_d+(off), nr); \
+#define clear_guest_offset(hnd, off, nr) ({ \
+ void *_d = (hnd).p; \
+ raw_clear_guest(_d+(off), nr); \
})
/*