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>
This commit is contained in:
Jaeyong Yoo authored and Ian Campbell committed 2013-10-10 12:50:31 +01:00
1 parent 5814c59925
commit e9ee35826e
1 file changed
+3 -2
+3 -2
View File
@@ -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); \
})
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.