Don't use memory map of no entry. Instead, fallback into old way.

This fixes one of ``can't find end of memory'' panic on startup.
This commit is contained in:
enami 2000-10-28 02:29:35 +00:00
parent 3c01d4cbca
commit 31ac87f602
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.406 2000/09/29 14:16:23 fvdl Exp $ */
/* $NetBSD: machdep.c,v 1.407 2000/10/28 02:29:35 enami Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@ -1779,7 +1779,7 @@ init386(first_avail)
* to us by the boot program.
*/
bim = lookup_bootinfo(BTINFO_MEMMAP);
if (bim != NULL) {
if (bim != NULL && bim->num > 0) {
#if 0
printf("BIOS MEMORY MAP (%d ENTRIES):\n", bim->num);
#endif