Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/i386/i386/machdep.c,v retrieving revision 1.586.2.4 retrieving revision 1.586.2.5 diff -u -p -r1.586.2.4 -r1.586.2.5 --- src/sys/arch/i386/i386/machdep.c 2007/04/20 20:31:25 1.586.2.4 +++ src/sys/arch/i386/i386/machdep.c 2007/08/28 11:46:26 1.586.2.5 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.586.2.4 2007/04/20 20:31:25 bouyer Exp $ */ +/* $NetBSD: machdep.c,v 1.586.2.5 2007/08/28 11:46:26 liamjfoy Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.586.2.4 2007/04/20 20:31:25 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.586.2.5 2007/08/28 11:46:26 liamjfoy Exp $"); #include "opt_beep.h" #include "opt_compat_ibcs2.h" @@ -1616,6 +1616,13 @@ init386(paddr_t first_avail) } /* + * If the segment is smaller than a page, skip it. + */ + if (bim->entry[x].size < NBPG) { + continue; + } + + /* * Sanity check the entry. * XXX Need to handle uint64_t in extent code * XXX and 64-bit physical addresses in i386