ia64/xen-unstable

changeset 16338:303ac8ec2359

[IA64] Clean up of vcpu_init_regs().

Use symbolical macro value instead of magic number.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Wed Nov 07 10:45:35 2007 -0700 (2007-11-07)
parents 1d0a2cb9f383
children e1cc10766f15
files xen/arch/ia64/xen/vcpu.c
line diff
     1.1 --- a/xen/arch/ia64/xen/vcpu.c	Wed Nov 07 10:41:43 2007 -0700
     1.2 +++ b/xen/arch/ia64/xen/vcpu.c	Wed Nov 07 10:45:35 2007 -0700
     1.3 @@ -146,8 +146,9 @@ void vcpu_init_regs(struct vcpu *v)
     1.4  	regs = vcpu_regs(v);
     1.5  	if (VMX_DOMAIN(v)) {
     1.6  		/* dt/rt/it:1;i/ic:1, si:1, vm/bn:1, ac:1 */
     1.7 -		/* Need to be expanded as macro */
     1.8 -		regs->cr_ipsr = 0x501008826008;
     1.9 +		regs->cr_ipsr = IA64_PSR_DT | IA64_PSR_RT | IA64_PSR_IT |
    1.10 +				IA64_PSR_I  | IA64_PSR_IC | IA64_PSR_SI |
    1.11 +				IA64_PSR_AC | IA64_PSR_BN | IA64_PSR_VM;
    1.12  		/* lazy fp */
    1.13  		FP_PSR(v) = IA64_PSR_DFH;
    1.14  		regs->cr_ipsr |= IA64_PSR_DFH;