Module Name: src Committed By: maxv Date: Wed Nov 15 20:25:29 UTC 2017
Modified Files: src/sys/arch/amd64/stand/prekern: mm.c Log Message: Mmh, should be <=. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/amd64/stand/prekern/mm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/stand/prekern/mm.c diff -u src/sys/arch/amd64/stand/prekern/mm.c:1.15 src/sys/arch/amd64/stand/prekern/mm.c:1.16 --- src/sys/arch/amd64/stand/prekern/mm.c:1.15 Wed Nov 15 18:44:34 2017 +++ src/sys/arch/amd64/stand/prekern/mm.c Wed Nov 15 20:25:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: mm.c,v 1.15 2017/11/15 18:44:34 maxv Exp $ */ +/* $NetBSD: mm.c,v 1.16 2017/11/15 20:25:29 maxv Exp $ */ /* * Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved. @@ -350,7 +350,7 @@ mm_map_segment(int segtype, paddr_t pa, vaddr_t randva; char pad; - if (elfsz < PAGE_SIZE) { + if (elfsz <= PAGE_SIZE) { pagesz = NBPD_L1; } else { pagesz = NBPD_L2;