[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [IA64] different type of argument in vcpu_set_gr()
# HG changeset patch # User awilliam@xxxxxxxxxxx # Node ID 3c091740f6ff3abe77ffd4ef0610a05b0fd98f6f # Parent 81aae0c1487e174c664be55a4be22ca80bdaa265 [IA64] different type of argument in vcpu_set_gr() Fix Reserved Register/Field fault in sal_emulate(). This bug is occurred by a wrong type argument. Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx> diff -r 81aae0c1487e -r 3c091740f6ff xen/arch/ia64/xen/vcpu.c --- a/xen/arch/ia64/xen/vcpu.c Fri Feb 17 21:49:58 2006 +++ b/xen/arch/ia64/xen/vcpu.c Fri Feb 17 21:57:19 2006 @@ -81,7 +81,7 @@ **************************************************************************/ #ifdef XEN UINT64 -vcpu_get_gr(VCPU *vcpu, unsigned reg) +vcpu_get_gr(VCPU *vcpu, unsigned long reg) { REGS *regs = vcpu_regs(vcpu); UINT64 val; @@ -90,7 +90,7 @@ return val; } IA64FAULT -vcpu_get_gr_nat(VCPU *vcpu, unsigned reg, UINT64 *val) +vcpu_get_gr_nat(VCPU *vcpu, unsigned long reg, UINT64 *val) { REGS *regs = vcpu_regs(vcpu); int nat; @@ -104,7 +104,7 @@ // IA64_ILLOP_FAULT if the register would cause an Illegal Operation fault // IA64_NO_FAULT otherwise IA64FAULT -vcpu_set_gr(VCPU *vcpu, unsigned reg, UINT64 value, int nat) +vcpu_set_gr(VCPU *vcpu, unsigned long reg, UINT64 value, int nat) { REGS *regs = vcpu_regs(vcpu); if (!reg) return IA64_ILLOP_FAULT; @@ -118,7 +118,7 @@ // IA64_ILLOP_FAULT if the register would cause an Illegal Operation fault // IA64_NO_FAULT otherwise IA64FAULT -vcpu_set_gr(VCPU *vcpu, unsigned reg, UINT64 value) +vcpu_set_gr(VCPU *vcpu, unsigned long reg, UINT64 value) { REGS *regs = vcpu_regs(vcpu); long sof = (regs->cr_ifs) & 0x7f; diff -r 81aae0c1487e -r 3c091740f6ff xen/include/asm-ia64/vcpu.h --- a/xen/include/asm-ia64/vcpu.h Fri Feb 17 21:49:58 2006 +++ b/xen/include/asm-ia64/vcpu.h Fri Feb 17 21:57:19 2006 @@ -34,9 +34,9 @@ #endif /* general registers */ -extern UINT64 vcpu_get_gr(VCPU *vcpu, unsigned reg); -extern IA64FAULT vcpu_get_gr_nat(VCPU *vcpu, unsigned reg, UINT64 *val); -extern IA64FAULT vcpu_set_gr(VCPU *vcpu, unsigned reg, UINT64 value, int nat); +extern UINT64 vcpu_get_gr(VCPU *vcpu, unsigned long reg); +extern IA64FAULT vcpu_get_gr_nat(VCPU *vcpu, unsigned long reg, UINT64 *val); +extern IA64FAULT vcpu_set_gr(VCPU *vcpu, unsigned long reg, UINT64 value, int nat); /* application registers */ extern IA64FAULT vcpu_set_ar(VCPU *vcpu, UINT64 reg, UINT64 val); /* psr */ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |