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 unused pkrs[] handling.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Clean up unused pkrs[] handling.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 07 Sep 2007 09:12:45 -0700
Delivery-date: Fri, 07 Sep 2007 09:16:21 -0700
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 1185832865 21600
# Node ID 32825349924d2e39d081cf192eee82fb5c46c878
# Parent  4492a0285bae734ee18f6acbb6b3f9c80f153be7
[IA64] Clean up unused pkrs[] handling.

Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/vcpu.c       |   14 --------------
 xen/include/public/arch-ia64.h |    3 +--
 2 files changed, 1 insertion(+), 16 deletions(-)

diff -r 4492a0285bae -r 32825349924d xen/arch/ia64/xen/vcpu.c
--- a/xen/arch/ia64/xen/vcpu.c  Fri Jul 27 08:15:16 2007 -0600
+++ b/xen/arch/ia64/xen/vcpu.c  Mon Jul 30 16:01:05 2007 -0600
@@ -2057,28 +2057,14 @@ IA64FAULT vcpu_get_rr(VCPU * vcpu, u64 r
 
 IA64FAULT vcpu_get_pkr(VCPU * vcpu, u64 reg, u64 * pval)
 {
-#ifndef PKR_USE_FIXED
        printk("vcpu_get_pkr: called, not implemented yet\n");
        return IA64_ILLOP_FAULT;
-#else
-       u64 val = (u64) ia64_get_pkr(reg);
-       *pval = val;
-       return IA64_NO_FAULT;
-#endif
 }
 
 IA64FAULT vcpu_set_pkr(VCPU * vcpu, u64 reg, u64 val)
 {
-#ifndef PKR_USE_FIXED
        printk("vcpu_set_pkr: called, not implemented yet\n");
        return IA64_ILLOP_FAULT;
-#else
-//      if (reg >= NPKRS)
-//             return IA64_ILLOP_FAULT;
-       vcpu->pkrs[reg] = val;
-       ia64_set_pkr(reg, val);
-       return IA64_NO_FAULT;
-#endif
 }
 
 /**************************************************************************
diff -r 4492a0285bae -r 32825349924d xen/include/public/arch-ia64.h
--- a/xen/include/public/arch-ia64.h    Fri Jul 27 08:15:16 2007 -0600
+++ b/xen/include/public/arch-ia64.h    Mon Jul 30 16:01:05 2007 -0600
@@ -236,8 +236,7 @@ struct mapped_regs {
             int banknum; // 0 or 1, which virtual register bank is active
             unsigned long rrs[8]; // region registers
             unsigned long krs[8]; // kernel registers
-            unsigned long pkrs[8]; // protection key registers
-            unsigned long tmp[8]; // temp registers (e.g. for hyperprivops)
+            unsigned long tmp[16]; // temp registers (e.g. for hyperprivops)
         };
     };
 };

_______________________________________________
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 unused pkrs[] handling., Xen patchbot-unstable <=