From: Ben Gras Date: Mon, 4 Oct 2010 11:38:33 +0000 (+0000) Subject: vm: don't check the range of memory during sanity checking X-Git-Tag: v3.2.0~798 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.named-checkzone.html?a=commitdiff_plain;h=36189370a5761a727f7bc42d425c1f5faee7c2e5;p=minix.git vm: don't check the range of memory during sanity checking - too many false positives due to memory that is mapped in legitimately (acpi, i/o devices) --- diff --git a/servers/vm/alloc.c b/servers/vm/alloc.c index a04075013..d112eb9f5 100644 --- a/servers/vm/alloc.c +++ b/servers/vm/alloc.c @@ -48,9 +48,6 @@ addr_avl addravl; /* Used for sanity check. */ PRIVATE phys_bytes mem_low, mem_high; -#define assert_range(addr, len) \ - assert((addr) >= mem_low); \ - assert((addr) + (len) - 1 <= mem_high); struct hole { struct hole *h_next; /* pointer to next entry on the list */ @@ -841,7 +838,6 @@ int usedpages_add_f(phys_bytes addr, phys_bytes len, char *file, int line) assert(!(addr % VM_PAGE_SIZE)); assert(!(len % VM_PAGE_SIZE)); assert(len > 0); - assert_range(addr, len); pagestart = addr / VM_PAGE_SIZE; pages = len / VM_PAGE_SIZE;