[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] hvm vpic: Fix IRQ priority calculation in 8259 device model.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1174061975 0 # Node ID 90d6fe6de04d14ed19f4797af751f8a9a7d94d13 # Parent 3a186e94f613371b4dfa98b8e0a8d5aaf0f0d681 hvm vpic: Fix IRQ priority calculation in 8259 device model. The priority shift should be a right-rotation, not a left-rotation. From: Trolle Selander <trolle.selander@xxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> --- xen/arch/x86/hvm/vpic.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 3a186e94f613 -r 90d6fe6de04d xen/arch/x86/hvm/vpic.c --- a/xen/arch/x86/hvm/vpic.c Fri Mar 16 15:19:08 2007 +0000 +++ b/xen/arch/x86/hvm/vpic.c Fri Mar 16 16:19:35 2007 +0000 @@ -54,8 +54,8 @@ static int vpic_get_priority(struct hvm_ if ( mask == 0 ) return VPIC_PRIO_NONE; - /* prio = ffs(mask ROL vpic->priority_add); */ - asm ( "rol %%cl,%b1 ; bsf %1,%0" + /* prio = ffs(mask ROR vpic->priority_add); */ + asm ( "ror %%cl,%b1 ; bsf %1,%0" : "=r" (prio) : "r" ((uint32_t)mask), "c" (vpic->priority_add) ); return prio; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |