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

[Xen-ia64-devel] IA64_ISR_CODE_MASK

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] IA64_ISR_CODE_MASK
From: Tristan Gingold <Tristan.Gingold@xxxxxxxx>
Date: Thu, 23 Mar 2006 10:51:08 +0100
Delivery-date: Thu, 23 Mar 2006 09:48:18 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.5
Hi,

With grep I can get:

./include/asm-ia64/linux-xen/asm/kregs.h:#define IA64_ISR_CODE_MASK     0xf
./include/asm-ia64/vmx_mm_def.h:#define IA64_ISR_CODE_MASK0     0xf
./include/asm-ia64/xenprocessor.h:#define IA64_ISR_CODE_MASK0     0xf

(this has to be cleaned).
But according to my IA64 spec, the code field is 16 bits wide.
So the macro value should be 0xffff
Is it a bug ?

Some uses are:
./arch/ia64/vmx/vmx_ivt.S:      and r22=IA64_ISR_CODE_MASK,r20          // get 
the isr.code field
./arch/ia64/xen/ivt.S:  and r18=IA64_ISR_CODE_MASK,r17          // get the 
isr.code field
./arch/ia64/xen/ivt.S:  and r22=IA64_ISR_CODE_MASK,r20          // get the 
isr.code field
./arch/ia64/xen/process.c:          || ((isr & IA64_ISR_NA) && (isr & 
IA64_ISR_CODE_MASK) == IA64_ISR_CODE_LFETCH))
./arch/ia64/xen/process.c:      if ((isr & IA64_ISR_NA) && ((isr & 
IA64_ISR_CODE_MASK) == IA64_ISR_CODE_LFETCH)) {

Thank you for comments,
Tristan.



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

<Prev in Thread] Current Thread [Next in Thread>