ia64/xen-unstable

changeset 16754:d0f0ed665d1a

[IA64] vti fault handler clean up: clean up VMX_DO_SAVE_MIN

- p15 was set twice with same condition
- r1 was set to r21 via r16. using r16 doesn't make sense.
direct set r1 to r21.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Fri Dec 14 13:26:38 2007 -0700 (2007-12-14)
parents 81cee3aa9e90
children 8cb29f1083ac
files xen/arch/ia64/vmx/vmx_minstate.h
line diff
     1.1 --- a/xen/arch/ia64/vmx/vmx_minstate.h	Fri Dec 14 13:24:44 2007 -0700
     1.2 +++ b/xen/arch/ia64/vmx/vmx_minstate.h	Fri Dec 14 13:26:38 2007 -0700
     1.3 @@ -107,7 +107,6 @@
     1.4   */
     1.5  
     1.6  #define VMX_DO_SAVE_MIN(COVER,SAVE_IFS,EXTRA)                                           \
     1.7 -    VMX_MINSTATE_GET_CURRENT(r16);      /* M (or M;;I) */                               \
     1.8      mov r27=ar.rsc;                     /* M */                                         \
     1.9      mov r20=r1;                         /* A */                                         \
    1.10      mov r25=ar.unat;                    /* M */                                         \
    1.11 @@ -122,7 +121,7 @@
    1.12      ;;                                                                                  \
    1.13  (p6)br.spnt.few vmx_panic;                                                              \
    1.14      tbit.z p0,p15=r29,IA64_PSR_I_BIT;                                                   \
    1.15 -    mov r1=r16;                                                                         \
    1.16 +    VMX_MINSTATE_GET_CURRENT(r1);      /* M (or M;;I) */                                \
    1.17      /*    mov r21=r16;  */                                                              \
    1.18      /* switch from user to kernel RBS: */                                               \
    1.19      ;;                                                                                  \
    1.20 @@ -137,7 +136,6 @@
    1.21      st8 [r16]=r29;      /* save cr.ipsr */                                              \
    1.22      ;;                                                                                  \
    1.23      lfetch.fault.excl.nt1 [r17];                                                        \
    1.24 -    tbit.nz p15,p0=r29,IA64_PSR_I_BIT;                                                  \
    1.25      mov r29=b0                                                                          \
    1.26      ;;                                                                                  \
    1.27      adds r16=PT(R8),r1; /* initialize first base pointer */                             \