Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap Correct the pmap_kstart_segtab entry in pmap_ke...
details: https://anonhg.NetBSD.org/src/rev/d3fb7e33d2e5
branches: trunk
changeset: 371973:d3fb7e33d2e5
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Oct 23 06:37:15 2022 +0000
description:
Correct the pmap_kstart_segtab entry in pmap_kern_segtab
diffstat:
sys/uvm/pmap/pmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8b447529d004 -r d3fb7e33d2e5 sys/uvm/pmap/pmap.c
--- a/sys/uvm/pmap/pmap.c Sun Oct 23 06:29:01 2022 +0000
+++ b/sys/uvm/pmap/pmap.c Sun Oct 23 06:37:15 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.67 2022/09/15 06:44:18 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.68 2022/10/23 06:37:15 skrll Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.67 2022/09/15 06:44:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.68 2022/10/23 06:37:15 skrll Exp $");
/*
* Manages physical address maps.
@@ -202,7 +202,7 @@
#endif
pmap_segtab_t pmap_kern_segtab PMAP_SEGTAB_ALIGN = { /* top level segtab for kernel */
#ifdef _LP64
- .seg_seg[(VM_MIN_KERNEL_ADDRESS & XSEGOFSET) >> SEGSHIFT] = &pmap_kstart_segtab,
+ .seg_seg[(VM_MIN_KERNEL_ADDRESS >> XSEGSHIFT) & (NSEGPG - 1)] = &pmap_kstart_segtab,
#endif
};
Home |
Main Index |
Thread Index |
Old Index