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] [PATCH 4/7] vti fault handler clean up: white space of

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH 4/7] vti fault handler clean up: white space of vmx_ivt.S
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Thu, 22 Nov 2007 16:07:08 +0900
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Delivery-date: Wed, 21 Nov 2007 23:07:55 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: Mutt/1.4.2.1i
# HG changeset patch
# User yamahata@xxxxxxxxxxxxx
# Date 1195702552 -32400
# Node ID f8540ab552bfccd1602c120d51d2f8fbb99e1045
# Parent  91576c5f53925564f6ea5a2ac3472619c6334875
white space and removed stale comments
PATCHNAME: white_space_vmx_ivt_s

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

diff -r 91576c5f5392 -r f8540ab552bf xen/arch/ia64/vmx/vmx_ivt.S
--- a/xen/arch/ia64/vmx/vmx_ivt.S       Thu Nov 08 18:36:11 2007 +0900
+++ b/xen/arch/ia64/vmx/vmx_ivt.S       Thu Nov 22 12:35:52 2007 +0900
@@ -70,29 +70,24 @@
 
 
 #ifdef VTI_DEBUG
-  /*
-   * This lets you track the last eight faults that occurred on the CPU.  Make 
sure ar.k2 isn't
-   * needed for something else before enabling this...
-   */
 #define IVT_DEBUG_MASK  (IVT_DEBUG_SIZE * (IVT_DEBUG_MAX - 1))
-#define VMX_DBG_FAULT(i) \
-    add r16=IVT_CUR_OFS,r21;    \
-    add r17=IVT_DBG_OFS,r21;;   \
-    ld8  r18=[r16];;    \
-    add r17=r18,r17;   \
-    mov r19=cr.iip;     \
-    mov r20=cr.ipsr;    \
-    mov r22=cr.ifa;     \
-    mov r23=i;;          \
-    st8 [r17]=r19,8;   \
-    add r18=IVT_DEBUG_SIZE,r18;;     \
-    st8 [r17]=r20,8;    \
-    mov r19=IVT_DEBUG_MASK;;      \
-    st8 [r17]=r22,8;   \
-    and r18=r19,r18;;   \
-    st8 [r17]=r23;      \
-    st8 [r16]=r18;;     \
-//# define VMX_DBG_FAULT(i)   mov r16=ar.k2;; shl r16=r16,8;; add 
r16=(i),r16;;mov ar.k2=r16
+#define VMX_DBG_FAULT(i)                \
+    add r16=IVT_CUR_OFS,r21;            \
+    add r17=IVT_DBG_OFS,r21;;           \
+    ld8 r18=[r16];;                     \
+    add r17=r18,r17;                    \
+    mov r19=cr.iip;                     \
+    mov r20=cr.ipsr;                    \
+    mov r22=cr.ifa;                     \
+    mov r23=i;;                         \
+    st8 [r17]=r19,8;                    \
+    add r18=IVT_DEBUG_SIZE,r18;;        \
+    st8 [r17]=r20,8;                    \
+    mov r19=IVT_DEBUG_MASK;;            \
+    st8 [r17]=r22,8;                    \
+    and r18=r19,r18;;                   \
+    st8 [r17]=r23;                      \
+    st8 [r16]=r18;;
 #else
 # define VMX_DBG_FAULT(i)
 #endif
@@ -103,22 +98,20 @@
 #include "minstate.h"
 
 
-#define VMX_FAULT(n)    \
-vmx_fault_##n:;          \
-    mov r19=n;           \
-    br.sptk.many dispatch_to_fault_handler;         \
-    ;;                  \
-
-
-#define VMX_REFLECT(n)    \
-    mov r31=pr;           \
-    mov r19=n;       /* prepare to save predicates */ \
-    mov r29=cr.ipsr;      \
-    ;;      \
-    tbit.z p6,p7=r29,IA64_PSR_VM_BIT;       \
-(p7)br.sptk.many vmx_dispatch_reflection;        \
+#define VMX_FAULT(n)                            \
+vmx_fault_##n:;                                 \
+    mov r19=n;                                  \
+    br.sptk.many dispatch_to_fault_handler;     \
+    ;;
+
+#define VMX_REFLECT(n)                              \
+    mov r31=pr;                                     \
+    mov r19=n;  /* prepare to save predicates */    \
+    mov r29=cr.ipsr;                                \
+    ;;                                              \
+    tbit.z p6,p7=r29,IA64_PSR_VM_BIT;               \
+(p7)br.sptk.many vmx_dispatch_reflection;           \
     br.sptk.many dispatch_to_fault_handler
-
 
 GLOBAL_ENTRY(vmx_panic)
     br.sptk.many vmx_panic

Attachment: 16421_f8540ab552bf_white_space_vmx_ivt_s.patch
Description: Text Data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH 4/7] vti fault handler clean up: white space of vmx_ivt.S, Isaku Yamahata <=