Module Name: src Committed By: macallan Date: Wed Aug 2 08:54:42 UTC 2023
Modified Files: src/sys/arch/hppa/hppa: pmap.c Log Message: avoid calling pmap_page_physload() with an empty range this avoids a panic in uvm_pmap_physload() now my C360 boots again To generate a diff of this commit: cvs rdiff -u -r1.120 -r1.121 src/sys/arch/hppa/hppa/pmap.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/hppa/hppa/pmap.c diff -u src/sys/arch/hppa/hppa/pmap.c:1.120 src/sys/arch/hppa/hppa/pmap.c:1.121 --- src/sys/arch/hppa/hppa/pmap.c:1.120 Thu Jun 16 06:25:42 2022 +++ src/sys/arch/hppa/hppa/pmap.c Wed Aug 2 08:54:42 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.120 2022/06/16 06:25:42 skrll Exp $ */ +/* $NetBSD: pmap.c,v 1.121 2023/08/02 08:54:42 macallan Exp $ */ /*- * Copyright (c) 2001, 2002, 2020 The NetBSD Foundation, Inc. @@ -65,7 +65,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.120 2022/06/16 06:25:42 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.121 2023/08/02 08:54:42 macallan Exp $"); #include "opt_cputype.h" @@ -1090,7 +1090,8 @@ pmap_bootstrap(vaddr_t vstart) availphysmem = 0; pmap_page_physload(resvmem, atop(ksrx)); - pmap_page_physload(atop(kero), atop(ksrw)); + if (atop(kero) != atop(ksrw)) + pmap_page_physload(atop(kero), atop(ksrw)); pmap_page_physload(atop(kerw), physmem); mutex_init(&pmaps_lock, MUTEX_DEFAULT, IPL_NONE);