From: Keir Fraser Subject: Re: [PATCH] linux/x86: avoid casting hypercall arguments to long Date: Mon, 21 Jan 2008 16:27:39 +0000 Message-ID: References: <4794C5DE.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4794C5DE.76E4.0078.0@novell.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: Jan Beulich , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 21/1/08 15:18, "Jan Beulich" wrote: > - : "1" ((long)(a1)) \ > + : "1" ((a1)?:0) \ Most of the patch seems to be placing this construct all over the place. What's it for? How is x?:0 different from x? > + register typeof((a4)?:0) __arg4 asm("r10") = (a4); \ > + register typeof((a5)?:0) __arg5 asm("r8") = (a5); \ > + "=d" (__ign3), "+r" (__arg4), "+r" (__arg5) \ Is it guaranteed that gcc will keep the register variables in their assigned registers across the inline asm? -- Keir