pkgsrc-ng/sysutils/xenkernel45/patches/patch-xen_common_page__alloc.c
2016-01-21 23:42:40 +01:00

14 lines
494 B
C

$NetBSD: patch-xen_common_page__alloc.c,v 1.1 2015/09/14 13:36:29 joerg Exp $
--- xen/common/page_alloc.c.orig 2015-09-13 17:37:09.000000000 +0000
+++ xen/common/page_alloc.c
@@ -1561,7 +1561,7 @@ void *alloc_xenheap_pages(unsigned int o
ASSERT(!in_irq());
if ( xenheap_bits && (memflags >> _MEMF_bits) > xenheap_bits )
- memflags &= ~MEMF_bits(~0);
+ memflags &= ~MEMF_bits(~0U);
if ( !(memflags >> _MEMF_bits) )
memflags |= MEMF_bits(xenheap_bits);