summaryrefslogtreecommitdiff
path: root/sys/src/cmd/vmx/exith.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-08-07 19:10:32 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-08-07 19:10:32 +0200
commitddf977d25c26d1cc3e83a08d9a3f19907dff35cc (patch)
tree6d8705a9eeb8cab3759a29e702e35f2911e789bb /sys/src/cmd/vmx/exith.c
parente0474599ddbeafb7f2734fead8cbba62c466990a (diff)
vmx: fix hlt idle problem
Diffstat (limited to 'sys/src/cmd/vmx/exith.c')
-rw-r--r--sys/src/cmd/vmx/exith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/vmx/exith.c b/sys/src/cmd/vmx/exith.c
index 127b8f062..ff1bcdf1d 100644
--- a/sys/src/cmd/vmx/exith.c
+++ b/sys/src/cmd/vmx/exith.c
@@ -434,7 +434,7 @@ dbgexc(ExitInfo *ei)
static void
hlt(ExitInfo *ei)
{
- if(irqactive == 0)
+ if(irqactive < 0)
state = VMHALT;
skipinstr(ei);
}