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] linux: set memory attribute in inlineasm

To: Aron Griffis <aron@xxxxxx>
Subject: Re: [Xen-ia64-devel] [Patch] linux: set memory attribute in inlineasm
From: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
Date: Fri, 04 Apr 2008 22:33:20 +0900
Cc: xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 04 Apr 2008 06:36:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080404131257.GA29397@xxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <D9C896386EFDF5takebe_akio@xxxxxxxxxxxxxx> <20080404131257.GA29397@xxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Aron

>Hi Akio,
>
>Akio Takebe wrote:  [Fri Apr 04 2008, 05:44:10AM EDT]
>> @@ -251,7 +251,7 @@ extern void xen_set_eflag(unsigned long)
>>  #define xen_ia64_intrin_local_irq_restore(x)                                
\
>>  {                                                                   \
>>       if (is_running_on_xen()) {                                             
\
>> -    if ((x) & IA64_PSR_I) { xen_ssm_i(); }                          \
>> +    if (x) { xen_ssm_i(); }                                         \
>>      else { xen_rsm_i(); }                                           \
>>      }                                                                       
\
>>      else __ia64_intrin_local_irq_restore((x));                              
\
>
>What does this part do?
Thank you for your review.
Sorry for my confusion.

The (x)&IA64_PSR_I should be not unnecessary part,
because ia64_intrin_local_irq_restore() is always called
via __local_irq_restore(x).
It is the same as __ia64_intrin_local_irq_restore(x)
in include/asm-ia64/gcc_intrin.h.

But since it's a different concept with this title,
I droped the hunk.

Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>

Best Regards,

Akio Takebe

Attachment: inline_asm_barrier.2.patch
Description: Binary data

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