From: Aron Griffis Subject: Re: [rfc] [patch] 32/64-bit hypercall interface revisited Date: Tue, 25 Apr 2006 18:16:40 -0400 Message-ID: <20060425221640.GG31429@vino.zko.hp.com> References: <1145049326.8498.39.camel@basalt.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <1145049326.8498.39.camel@basalt.austin.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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