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-ia64-devel

Re: [Xen-ia64-devel] [PATCH] ia64/linux: fix fsys.S paravirtualization

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-ia64-devel] [PATCH] ia64/linux: fix fsys.S paravirtualization
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 3 Apr 2009 11:35:08 +0900
Delivery-date: Thu, 02 Apr 2009 19:35:12 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20090331053855.GN21109%yamahata@xxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20090331053855.GN21109%yamahata@xxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
The use of r28 doesn't seem necessary. Only use r14.


[IA64] fix fsys.S paravirtualization

fix fsys.S paravirtualization.
event_mask must be cleared before checking event_pending.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff --git a/arch/ia64/kernel/fsys.S b/arch/ia64/kernel/fsys.S
--- a/arch/ia64/kernel/fsys.S
+++ b/arch/ia64/kernel/fsys.S
@@ -662,14 +662,16 @@ GLOBAL_ENTRY(fsys_bubble_down)
        // p15 = !running_on_xen
        cmp.ne p14,p15=r0,r14
        ;; 
-(p14)  movl r28=XSI_PSR_I_ADDR;;
-(p14)  ld8 r28=[r28];;
-(p14)  adds r28=-1,r28;;                       // event_pending
-(p14)  ld1 r14=[r28];;
-(p14)  cmp.ne.unc p13,p14=r14,r0;;
+(p14)  movl r14=XSI_PSR_I_ADDR
+       ;;
+(p14)  ld8 r14=[r14]
+       ;;
+(p14)  st1 [r14]=r0,-1                         // clear event_mask
+       ;;
+(p14)  ld1 r14=[r14]                           // event_pending
+       ;;
+(p14)  cmp.ne.unc p13,p14=r14,r0
 (p13)  XEN_HYPER_SSM_I
-(p14)  adds r28=1,r28;;                        // event_mask
-(p14)  st1 [r28]=r0;;
 (p15)  ssm psr.i
 #else
        ssm psr.i                               // M2   we're on kernel stacks 
now, reenable irqs


On Tue, Mar 31, 2009 at 02:38:55PM +0900, Isaku Yamahata wrote:
> [IA64] fix fsys.S paravirtualization
> 
> fix fsys.S paravirtualization.
> event_mask must be cleared before checking event_pending.
> 
> Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
> 
> diff --git a/arch/ia64/kernel/fsys.S b/arch/ia64/kernel/fsys.S
> --- a/arch/ia64/kernel/fsys.S
> +++ b/arch/ia64/kernel/fsys.S
> @@ -662,14 +662,16 @@ GLOBAL_ENTRY(fsys_bubble_down)
>       // p15 = !running_on_xen
>       cmp.ne p14,p15=r0,r14
>       ;; 
> -(p14)        movl r28=XSI_PSR_I_ADDR;;
> -(p14)        ld8 r28=[r28];;
> -(p14)        adds r28=-1,r28;;                       // event_pending
> -(p14)        ld1 r14=[r28];;
> -(p14)        cmp.ne.unc p13,p14=r14,r0;;
> +(p14)        movl r28=XSI_PSR_I_ADDR
> +     ;;
> +(p14)        ld8 r28=[r28]
> +     ;;
> +(p14)        st1 [r28]=r0,-1                         // clear event_mask
> +     ;;
> +(p14)        ld1 r14=[r28]                           // event_pending
> +     ;;
> +(p14)        cmp.ne.unc p13,p14=r14,r0
>  (p13)        XEN_HYPER_SSM_I
> -(p14)        adds r28=1,r28;;                        // event_mask
> -(p14)        st1 [r28]=r0;;
>  (p15)        ssm psr.i
>  #else
>       ssm psr.i                               // M2   we're on kernel stacks 
> now, reenable irqs
> 
> 

-- 
yamahata

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-ia64-devel] [PATCH] ia64/linux: fix fsys.S paravirtualization, Isaku Yamahata <=