aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/hypervisor.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-05-24 09:24:25 +0100
committerKeir Fraser <keir.fraser@citrix.com>2008-05-24 09:24:25 +0100
commitb9920f5849e0e712d9b11ad65776a18264f24e59 (patch)
treea60a27b3d1dcb1d6e937fa30d153be4f283dcc61 /extras/mini-os/hypervisor.c
parent74c4a80c2b2c35d0112f07273761ba1d24d936a0 (diff)
downloadxen-b9920f5849e0e712d9b11ad65776a18264f24e59.tar.gz
xen-b9920f5849e0e712d9b11ad65776a18264f24e59.tar.bz2
xen-b9920f5849e0e712d9b11ad65776a18264f24e59.zip
minios: Fix width of shifted 1
Shifting 1 more that 32 bits requires 1 to be long-typed. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/hypervisor.c')
-rw-r--r--extras/mini-os/hypervisor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/mini-os/hypervisor.c b/extras/mini-os/hypervisor.c
index acc9494c01..299180e3d2 100644
--- a/extras/mini-os/hypervisor.c
+++ b/extras/mini-os/hypervisor.c
@@ -55,12 +55,12 @@ void do_hypervisor_callback(struct pt_regs *regs)
while ( l1 != 0 )
{
l1i = __ffs(l1);
- l1 &= ~(1 << l1i);
+ l1 &= ~(1UL << l1i);
while ( (l2 = active_evtchns(cpu, s, l1i)) != 0 )
{
l2i = __ffs(l2);
- l2 &= ~(1 << l2i);
+ l2 &= ~(1UL << l2i);
port = (l1i * (sizeof(unsigned long) * 8)) + l2i;
do_event(port, regs);