From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 29 Jun 2006 13:37:32 +0000 (+0100) Subject: Define an architecture-specific 'long' type for ABI compatibility. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15912^2~35^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=742b36a804095f72708a0148407378aba454e4ab;p=xen.git Define an architecture-specific 'long' type for ABI compatibility. Signed-off-by: Hollis Blanchard --- diff --git a/xen/include/public/arch-ia64.h b/xen/include/public/arch-ia64.h index 5aba928349..caa3e0237e 100644 --- a/xen/include/public/arch-ia64.h +++ b/xen/include/public/arch-ia64.h @@ -40,6 +40,8 @@ DEFINE_XEN_GUEST_HANDLE(xen_pfn_t); #ifndef __ASSEMBLY__ +typedef unsigned long xen_ulong_t; + #define MAX_NR_SECTION 32 /* at most 32 memory holes */ struct mm_section { unsigned long start; /* start of memory hole */ diff --git a/xen/include/public/arch-x86_32.h b/xen/include/public/arch-x86_32.h index adde3ce1e8..096ab9736d 100644 --- a/xen/include/public/arch-x86_32.h +++ b/xen/include/public/arch-x86_32.h @@ -98,6 +98,8 @@ DEFINE_XEN_GUEST_HANDLE(xen_pfn_t); #ifndef __ASSEMBLY__ +typedef unsigned long xen_ulong_t; + /* * Send an array of these to HYPERVISOR_set_trap_table() */ diff --git a/xen/include/public/arch-x86_64.h b/xen/include/public/arch-x86_64.h index 4f74bb523e..715a538f04 100644 --- a/xen/include/public/arch-x86_64.h +++ b/xen/include/public/arch-x86_64.h @@ -105,6 +105,8 @@ DEFINE_XEN_GUEST_HANDLE(xen_pfn_t); #ifndef __ASSEMBLY__ +typedef unsigned long xen_ulong_t; + /* * int HYPERVISOR_set_segment_base(unsigned int which, unsigned long base) * @which == SEGBASE_* ; @base == 64-bit base address diff --git a/xen/include/public/memory.h b/xen/include/public/memory.h index 9791437ca0..97cb29a811 100644 --- a/xen/include/public/memory.h +++ b/xen/include/public/memory.h @@ -32,7 +32,7 @@ struct xen_memory_reservation { XEN_GUEST_HANDLE(xen_pfn_t) extent_start; /* Number of extents, and size/alignment of each (2^extent_order pages). */ - unsigned long nr_extents; + xen_ulong_t nr_extents; unsigned int extent_order; /* @@ -90,7 +90,7 @@ struct xen_memory_exchange { * command will be non-zero. * 5. THIS FIELD MUST BE INITIALISED TO ZERO BY THE CALLER! */ - unsigned long nr_exchanged; + xen_ulong_t nr_exchanged; }; typedef struct xen_memory_exchange xen_memory_exchange_t; DEFINE_XEN_GUEST_HANDLE(xen_memory_exchange_t); @@ -148,8 +148,8 @@ DEFINE_XEN_GUEST_HANDLE(xen_machphys_mfn_list_t); */ #define XENMEM_machphys_mapping 12 struct xen_machphys_mapping { - unsigned long v_start, v_end; /* Start and end virtual addresses. */ - unsigned long max_mfn; /* Maximum MFN that can be looked up. */ + xen_ulong_t v_start, v_end; /* Start and end virtual addresses. */ + xen_ulong_t max_mfn; /* Maximum MFN that can be looked up. */ }; typedef struct xen_machphys_mapping xen_machphys_mapping_t; DEFINE_XEN_GUEST_HANDLE(xen_machphys_mapping_t); @@ -170,7 +170,7 @@ struct xen_add_to_physmap { unsigned int space; /* Index into source mapping space. */ - unsigned long idx; + xen_ulong_t idx; /* GPFN where the source mapping page should appear. */ xen_pfn_t gpfn; @@ -188,7 +188,7 @@ struct xen_translate_gpfn_list { domid_t domid; /* Length of list. */ - unsigned long nr_gpfns; + xen_ulong_t nr_gpfns; /* List of GPFNs to translate. */ XEN_GUEST_HANDLE(xen_pfn_t) gpfn_list;