]> Zhao Yanbai Git Server - minix.git/commitdiff
check relaxation for bios memory
authorBen Gras <ben@minix3.org>
Mon, 6 Jun 2005 11:54:58 +0000 (11:54 +0000)
committerBen Gras <ben@minix3.org>
Mon, 6 Jun 2005 11:54:58 +0000 (11:54 +0000)
kernel/system.c

index b371dd27b0c3bb88e49ee4cfbe439693bc6b0106..ebb79225867a76e682dab30406de1bd165197a62 100755 (executable)
@@ -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;