WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [IA64] Clean up of vcpu_init_regs().

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Clean up of vcpu_init_regs().
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 09 Nov 2007 04:21:18 -0800
Delivery-date: Fri, 09 Nov 2007 05:28:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Clean up of vcpu_init_regs()., Xen patchbot-unstable <=