[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Clean up of vcpu_init_regs().
# HG changeset patch # User Alex Williamson <alex.williamson@xxxxxx> # Date 1194457535 25200 # Node ID 303ac8ec2359a4ef09c6e41da42c064f45bd4ecf # Parent 1d0a2cb9f383e547e0a2ea2c15be7617a78c46e4 [IA64] Clean up of vcpu_init_regs(). Use symbolical macro value instead of magic number. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- xen/arch/ia64/xen/vcpu.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -r 1d0a2cb9f383 -r 303ac8ec2359 xen/arch/ia64/xen/vcpu.c --- a/xen/arch/ia64/xen/vcpu.c Wed Nov 07 10:41:43 2007 -0700 +++ b/xen/arch/ia64/xen/vcpu.c Wed Nov 07 10:45:35 2007 -0700 @@ -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-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |