[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [pushed] [ppc] sync up the XEN_GUEST_HANDLE definitions
changeset: 10260:78d9df8bbf4dfda63c2c80a203c0eac74cf054e8 user: jimix@xxxxxxxxxxxxxxxxxxxxx date: Thu May 11 15:24:50 2006 -0400 files: xen/include/public/arch-ppc64.h description: [ppc] sync up the XEN_GUEST_HANDLE definitions diff -r 280aa0711c22d7a94501ea21816736fbfa8d9ff9 -r 78d9df8bbf4dfda63c2c80a203c0eac74cf054e8 xen/include/public/arch-ppc64.h --- a/xen/include/public/arch-ppc64.h Wed May 10 15:52:21 2006 -0400 +++ b/xen/include/public/arch-ppc64.h Thu May 11 15:24:50 2006 -0400 @@ -20,16 +20,20 @@ #ifndef __XEN_PUBLIC_ARCH_PPC_64_H__ #define __XEN_PUBLIC_ARCH_PPC_64_H__ -#ifdef __XEN__ +#ifndef __XEN__ +/* not sure how this is supposed to get asserted */ +#define __XEN_INTERFACE_VERSION__ 0x00030202 +#endif + #define __DEFINE_XEN_GUEST_HANDLE(name, type) \ typedef struct { type *p; } __guest_handle_ ## name -#else -#define __DEFINE_XEN_GUEST_HANDLE(name, type) \ - typedef type * __guest_handle_ ## name -#endif #define DEFINE_XEN_GUEST_HANDLE(name) __DEFINE_XEN_GUEST_HANDLE(name, name) #define XEN_GUEST_HANDLE(name) __guest_handle_ ## name +#define set_xen_guest_handle(hnd, val) do { (hnd).p = val; } while (0) +#ifdef __XEN_TOOLS__ +#define get_xen_guest_handle(val, hnd) do { val = (hnd).p; } while (0) +#endif #ifndef __ASSEMBLY__ /* Guest handles for primitive C types. */ _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |