From: Ben Gras Date: Mon, 6 Jun 2005 11:54:58 +0000 (+0000) Subject: check relaxation for bios memory X-Git-Tag: v3.1.0~770 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=cde16504a18a79098f9d3a550ddea343c985b2a5;p=minix.git check relaxation for bios memory --- diff --git a/kernel/system.c b/kernel/system.c index b371dd27b..ebb792258 100755 --- a/kernel/system.c +++ b/kernel/system.c @@ -356,10 +356,15 @@ vir_bytes bytes; /* # of bytes to be copied */ phys_bytes phys_addr; /* Check all acceptable ranges. */ +#if 0 if (vir_addr >= BIOS_MEM_BEGIN && vir_addr + bytes <= BIOS_MEM_END) return (phys_bytes) vir_addr; else if (vir_addr >= UPPER_MEM_BEGIN && vir_addr + bytes <= UPPER_MEM_END) return (phys_bytes) vir_addr; +#else + if (vir_addr >= BIOS_MEM_BEGIN && vir_addr + bytes <= UPPER_MEM_END) + return (phys_bytes) vir_addr; +#endif kprintf("Warning, error in umap_bios, virtual address 0x%x\n", vir_addr); return 0;