Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap Rename pmap_md_pdetab_destroy to pmap_md_pdetab...
details: https://anonhg.NetBSD.org/src/rev/53099a162cba
branches: trunk
changeset: 372707:53099a162cba
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Dec 21 11:39:45 2022 +0000
description:
Rename pmap_md_pdetab_destroy to pmap_md_pdetab_fini to match
pmap_md_pdetab_init.
Call pmap_md_pdetab_fini from pmap_segtab_destroy.
diffstat:
sys/arch/aarch64/aarch64/pmap_machdep.c | 6 +++---
sys/arch/aarch64/include/pmap_machdep.h | 4 ++--
sys/uvm/pmap/pmap_segtab.c | 5 +++--
3 files changed, 8 insertions(+), 7 deletions(-)
diffs (71 lines):
diff -r c80c8bc5269f -r 53099a162cba sys/arch/aarch64/aarch64/pmap_machdep.c
--- a/sys/arch/aarch64/aarch64/pmap_machdep.c Wed Dec 21 09:33:34 2022 +0000
+++ b/sys/arch/aarch64/aarch64/pmap_machdep.c Wed Dec 21 11:39:45 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_machdep.c,v 1.1 2022/11/03 09:04:56 skrll Exp $ */
+/* $NetBSD: pmap_machdep.c,v 1.2 2022/12/21 11:39:45 skrll Exp $ */
/*-
* Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#define __PMAP_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.1 2022/11/03 09:04:56 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.2 2022/12/21 11:39:45 skrll Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -610,7 +610,7 @@
}
void
-pmap_md_pdetab_destroy(struct pmap *pm)
+pmap_md_pdetab_fini(struct pmap *pm)
{
KASSERT(pm != NULL);
diff -r c80c8bc5269f -r 53099a162cba sys/arch/aarch64/include/pmap_machdep.h
--- a/sys/arch/aarch64/include/pmap_machdep.h Wed Dec 21 09:33:34 2022 +0000
+++ b/sys/arch/aarch64/include/pmap_machdep.h Wed Dec 21 11:39:45 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_machdep.h,v 1.1 2022/11/03 09:04:56 skrll Exp $ */
+/* $NetBSD: pmap_machdep.h,v 1.2 2022/12/21 11:39:46 skrll Exp $ */
/*-
* Copyright (c) 2022 The NetBSD Foundation, Inc.
@@ -93,7 +93,7 @@
#define pm_l0_pa pm_md.pmd_l0_pa
void pmap_md_pdetab_init(struct pmap *);
-void pmap_md_pdetab_destroy(struct pmap *);
+void pmap_md_pdetab_fini(struct pmap *);
vaddr_t pmap_md_map_poolpage(paddr_t, size_t);
paddr_t pmap_md_unmap_poolpage(vaddr_t, size_t);
diff -r c80c8bc5269f -r 53099a162cba sys/uvm/pmap/pmap_segtab.c
--- a/sys/uvm/pmap/pmap_segtab.c Wed Dec 21 09:33:34 2022 +0000
+++ b/sys/uvm/pmap/pmap_segtab.c Wed Dec 21 11:39:45 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_segtab.c,v 1.30 2022/10/27 06:49:51 skrll Exp $ */
+/* $NetBSD: pmap_segtab.c,v 1.31 2022/12/21 11:39:46 skrll Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_segtab.c,v 1.30 2022/10/27 06:49:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_segtab.c,v 1.31 2022/12/21 11:39:46 skrll Exp $");
/*
* Manages physical address maps.
@@ -911,6 +911,7 @@
#if defined(PMAP_HWPAGEWALKER)
if (pmap->pm_pdetab != NULL) {
+ pmap_md_pdetab_fini(pmap);
pmap_pdetab_release(pmap, &pmap->pm_pdetab,
true, pmap->pm_minaddr, vinc);
}
Home |
Main Index |
Thread Index |
Old Index