clean up of vcpu_init_regs().
use symbolical macro value instead of magic number.

-- 
yamahata
# HG changeset patch
# User [EMAIL PROTECTED]
# Date 1194431346 -32400
# Node ID 07e9f799e287f6e39351c5b9e632b0725aec8533
# Parent  2f8c2eb73f50cc68bde19d07fca12c44496f3c71
clean up of vcpu_init_regs().
use symbolical macro value instead of magic number.
PATCHNAME: vcpu_init_regs_clean_up

Signed-off-by: Isaku Yamahata <[EMAIL PROTECTED]>

diff -r 2f8c2eb73f50 -r 07e9f799e287 xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c	Wed Nov 07 19:48:46 2007 +0900
+++ b/xen/arch/ia64/xen/vcpu.c	Wed Nov 07 19:29:06 2007 +0900
@@ -146,8 +146,9 @@ void vcpu_init_regs(struct vcpu *v)
 	regs = vcpu_regs(v);
 	if (VMX_DOMAIN(v)) {
 		/* dt/rt/it:1;i/ic:1, si:1, vm/bn:1, ac:1 */
-		/* Need to be expanded as macro */
-		regs->cr_ipsr = 0x501008826008;
+		regs->cr_ipsr = IA64_PSR_DT | IA64_PSR_RT | IA64_PSR_IT |
+			IA64_PSR_I | IA64_PSR_IC |
+			IA64_PSR_SI | IA64_PSR_AC | IA64_PSR_BN | IA64_PSR_VM;
 		/* lazy fp */
 		FP_PSR(v) = IA64_PSR_DFH;
 		regs->cr_ipsr |= IA64_PSR_DFH;
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@lists.xensource.com
http://lists.xensource.com/xen-ia64-devel

Reply via email to