WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [rfc] [patch] 32/64-bit hypercall interface revisited

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [rfc] [patch] 32/64-bit hypercall interface revisited
From: Aron Griffis <aron@xxxxxx>
Date: Tue, 25 Apr 2006 18:16:40 -0400
Delivery-date: Tue, 25 Apr 2006 15:17:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1145049326.8498.39.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: xen-devel@xxxxxxxxxxxxxxxxxxx
References: <1145049326.8498.39.camel@xxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
Hollis Blanchard wrote:  [Fri Apr 14 2006, 05:15:25PM EDT]
> For reference, the PPC changes look something like this:
> -    typedef struct { type *p; } __guest_handle_ ## name
> +    typedef union { uint64_t u; type *p; } __guest_handle_ ## name
> 
> +#define SET_HANDLE(hnd, val) do {           \
> +        (void)((hnd).p == (val));           \
> +        (hnd).u = (uint64_t)(unsigned long)(void *)(val);  \
> +    } while (0)
> +
> +#define GET_HANDLE(val, hnd) do {           \
> +        (val) = (hnd).p;                    \
> +    } while (0)

Is your final version of this code for PPC, in context, available for
reference?  I don't see it on the mailing lists or at
http://xenbits.xensource.com/ext/xenppc-unstable.hg

Thanks,
Aron

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel