From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Martin Subject: Re: [PATCH RESEND] xen/arm: use the __HVC macro Date: Mon, 5 Nov 2012 10:58:17 +0000 Message-ID: <20121105105817.GC2005@linaro.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Stefano Stabellini Cc: "linux-kernel@vger.kernel.org" , "xen-devel@lists.xensource.com" , "konrad.wilk@oracle.com" , "Tim (Xen.org)" , Ian Campbell , "linux-arm-kernel@lists.infradead.org" , "linaro-dev@lists.linaro.org" , "arnd@arndb.de" List-Id: xen-devel@lists.xenproject.org On Wed, Oct 24, 2012 at 04:26:08PM +0100, Stefano Stabellini wrote: > Use the new __HVC macro in hypercall.S. > > Signed-off-by: Stefano Stabellini This is correct usage of the __HVC() macro, so Acked-by: Dave Martin > --- > arch/arm/xen/hypercall.S | 14 +++++--------- > 1 files changed, 5 insertions(+), 9 deletions(-) > > diff --git a/arch/arm/xen/hypercall.S b/arch/arm/xen/hypercall.S > index 074f5ed..71f7239 100644 > --- a/arch/arm/xen/hypercall.S > +++ b/arch/arm/xen/hypercall.S > @@ -48,20 +48,16 @@ > > #include > #include > +#include > #include > > > -/* HVC 0xEA1 */ > -#ifdef CONFIG_THUMB2_KERNEL > -#define xen_hvc .word 0xf7e08ea1 > -#else > -#define xen_hvc .word 0xe140ea71 > -#endif > +#define XEN_IMM 0xEA1 > > #define HYPERCALL_SIMPLE(hypercall) \ > ENTRY(HYPERVISOR_##hypercall) \ > mov r12, #__HYPERVISOR_##hypercall; \ > - xen_hvc; \ > + __HVC(XEN_IMM); \ > mov pc, lr; \ > ENDPROC(HYPERVISOR_##hypercall) > > @@ -76,7 +72,7 @@ ENTRY(HYPERVISOR_##hypercall) \ > stmdb sp!, {r4} \ > ldr r4, [sp, #4] \ > mov r12, #__HYPERVISOR_##hypercall; \ > - xen_hvc \ > + __HVC(XEN_IMM); \ > ldm sp!, {r4} \ > mov pc, lr \ > ENDPROC(HYPERVISOR_##hypercall) > @@ -100,7 +96,7 @@ ENTRY(privcmd_call) > mov r2, r3 > ldr r3, [sp, #8] > ldr r4, [sp, #4] > - xen_hvc > + __HVC(XEN_IMM) > ldm sp!, {r4} > mov pc, lr > ENDPROC(privcmd_call); > -- > 1.7.2.5