Mailing List Archive

[xen-unstable] [IA64] Clean up unused pkrs[] handling.
# HG changeset patch
# User Alex Williamson <alex.williamson@hp.com>
# Date 1185832865 21600
# Node ID 32825349924d2e39d081cf192eee82fb5c46c878
# Parent 4492a0285bae734ee18f6acbb6b3f9c80f153be7
[IA64] Clean up unused pkrs[] handling.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
---
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@lists.xensource.com
http://lists.xensource.com/xen-changelog