summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/i86pc/i86hvm/io/xpv/evtchn.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/uts/i86pc/i86hvm/io/xpv/evtchn.c b/usr/src/uts/i86pc/i86hvm/io/xpv/evtchn.c
index f127f4fa26..dbaa32c71e 100644
--- a/usr/src/uts/i86pc/i86hvm/io/xpv/evtchn.c
+++ b/usr/src/uts/i86pc/i86hvm/io/xpv/evtchn.c
@@ -24,6 +24,10 @@
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2014 by Delphix. All rights reserved.
+ */
+
#include <sys/types.h>
#include <sys/xpv_support.h>
#include <sys/hypervisor.h>
@@ -268,7 +272,7 @@ again:
while (pending_word != 0) {
j = lowbit(pending_word) - 1;
port = (i << EVTCHN_SHIFT) + j;
- pending_word = pending_word & ~(1 << j);
+ pending_word = pending_word & ~(1UL << j);
/*
* If there is a handler registered for this event,