From b9920f5849e0e712d9b11ad65776a18264f24e59 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 24 May 2008 09:24:25 +0100 Subject: minios: Fix width of shifted 1 Shifting 1 more that 32 bits requires 1 to be long-typed. Signed-off-by: Samuel Thibault --- extras/mini-os/hypervisor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extras/mini-os/hypervisor.c') 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); -- cgit v1.2.3