aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/mm.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-10-17 16:43:54 +0100
committerIan Campbell <ian.campbell@citrix.com>2012-10-17 16:43:54 +0100
commit85cb5df14e14e07dfb902ffc1d3df4784c65d673 (patch)
tree833a8ad5cc0c81bc3171a3a54d025f58349d24eb /xen/arch/x86/mm.c
parentabf06ea91d1210d9cf7cde4c0465cd49b21efacb (diff)
downloadxen-85cb5df14e14e07dfb902ffc1d3df4784c65d673.tar.gz
xen-85cb5df14e14e07dfb902ffc1d3df4784c65d673.tar.bz2
xen-85cb5df14e14e07dfb902ffc1d3df4784c65d673.zip
xen: remove XEN_GUEST_HANDLE(ulong)
Having both this handle (always unsigned long) and XEN_GUEST_HANDLE(xen_ulong_t) (unsigned long on x86 and explicit size of ARM) is confusing and error prone. Replace the two remaining uses of the ulong handle, in grant set and x86 set_gdt hypercalls, with xen_ulong_t. This correctly sizes the grant frame entry as 64 bit on ARM but leaves it as unsigned long on x86 (therefore no intended change on x86). Likewise in set_gdt there is no actual change. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/arch/x86/mm.c')
-rw-r--r--xen/arch/x86/mm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c
index 191f5ea453..fad3d33d03 100644
--- a/xen/arch/x86/mm.c
+++ b/xen/arch/x86/mm.c
@@ -4100,7 +4100,8 @@ long set_gdt(struct vcpu *v,
}
-long do_set_gdt(XEN_GUEST_HANDLE_PARAM(ulong) frame_list, unsigned int entries)
+long do_set_gdt(XEN_GUEST_HANDLE_PARAM(xen_ulong_t) frame_list,
+ unsigned int entries)
{
int nr_pages = (entries + 511) / 512;
unsigned long frames[16];