From: Tomas Hruby Date: Wed, 21 Jul 2010 13:46:29 +0000 (+0000) Subject: Overly restrictive assert X-Git-Tag: v3.1.8~168 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-revoke.html?a=commitdiff_plain;h=f6f20e1269329f653a5f9a0f0fbc8dbe7c03b9f7;p=minix.git Overly restrictive assert - not true if APIC is enabled --- diff --git a/servers/vm/arch/i386/pagetable.c b/servers/vm/arch/i386/pagetable.c index 880051381..367508372 100644 --- a/servers/vm/arch/i386/pagetable.c +++ b/servers/vm/arch/i386/pagetable.c @@ -469,7 +469,7 @@ PUBLIC int pt_ptalloc_in_range(pt_t *pt, vir_bytes start, vir_bytes end, first_pde = start ? I386_VM_PDE(start) : proc_pde; last_pde = end ? I386_VM_PDE(end) : I386_VM_DIR_ENTRIES - 1; - assert(first_pde >= proc_pde && first_pde <= last_pde); + assert(first_pde >= 0); assert(last_pde < I386_VM_DIR_ENTRIES); /* Scan all page-directory entries in the range. */