aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2015-03-19 23:48:12 -0400
committerRusty Russell <rusty@rustcorp.com.au>2015-03-20 00:37:08 -0400
commit88ad1a147e2c84d33cb50f5ebff1ece5e0cd4383 (patch)
tree787bf5d65989c9bf09391f606f12f43dfee69c3d /arch/x86
parentc58616580ea520aab8dacef787d855bea3e81c25 (diff)
lguest: fix pending interrupt test.
Denys says: TEST with zero will always set ZF. Thus, "jnz send_interrupts" never jumps. We get interrupts regularly enough that this didn't cause immediate problems. Reported-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lguest/head_32.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lguest/head_32.S b/arch/x86/lguest/head_32.S
index 6ddfe4fc23c3..05b0a85507ce 100644
--- a/arch/x86/lguest/head_32.S
+++ b/arch/x86/lguest/head_32.S
@@ -84,7 +84,7 @@ ENTRY(lg_irq_enable)
84 * set lguest_data.irq_pending to X86_EFLAGS_IF. If it's not zero, we 84 * set lguest_data.irq_pending to X86_EFLAGS_IF. If it's not zero, we
85 * jump to send_interrupts, otherwise we're done. 85 * jump to send_interrupts, otherwise we're done.
86 */ 86 */
87 testl $0, lguest_data+LGUEST_DATA_irq_pending 87 cmpl $0, lguest_data+LGUEST_DATA_irq_pending
88 jnz send_interrupts 88 jnz send_interrupts
89 /* 89 /*
90 * One cool thing about x86 is that you can do many things without using 90 * One cool thing about x86 is that you can do many things without using