ia64/xen-unstable

changeset 13108:a50fd1fed61e

[IA64] vcpu_get_psr fix

mov r1=psr only return PSR{36:35,31:0}

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
author awilliam@xenbuild2.aw
date Tue Jan 02 15:19:44 2007 -0700 (2007-01-02)
parents 80c5b5914b79
children 99ff540b0efe
files xen/arch/ia64/xen/vcpu.c
line diff
     1.1 --- a/xen/arch/ia64/xen/vcpu.c	Wed Dec 20 14:55:02 2006 -0700
     1.2 +++ b/xen/arch/ia64/xen/vcpu.c	Tue Jan 02 15:19:44 2007 -0700
     1.3 @@ -450,8 +450,6 @@ IA64FAULT vcpu_get_psr(VCPU * vcpu, u64 
     1.4  	struct ia64_psr newpsr;
     1.5  
     1.6  	newpsr = *(struct ia64_psr *)&regs->cr_ipsr;
     1.7 -	if (newpsr.cpl == 2)
     1.8 -		newpsr.cpl = 0;
     1.9  	if (!vcpu->vcpu_info->evtchn_upcall_mask)
    1.10  		newpsr.i = 1;
    1.11  	else
    1.12 @@ -469,6 +467,7 @@ IA64FAULT vcpu_get_psr(VCPU * vcpu, u64 
    1.13  	else
    1.14  		newpsr.pp = 0;
    1.15  	*pval = *(unsigned long *)&newpsr;
    1.16 +	*pval &= (MASK(0, 32) | MASK(35, 2));
    1.17  	return IA64_NO_FAULT;
    1.18  }
    1.19