From 1489ffbde0e9816bd4909d4961ef620daf24ada0 Mon Sep 17 00:00:00 2001 From: dv Date: Wed, 29 Jun 2022 14:24:29 +0000 Subject: [PATCH] remove archaic comment from original import of i386 pmap This comment hasn't been relevant for at least 11 years as there's no such lock. NetBSD removed the comment 11 years ago. No functional change. Discussed with mlarkin@ --- sys/arch/amd64/amd64/pmap.c | 4 +--- sys/arch/i386/i386/pmap.c | 3 +-- sys/arch/i386/i386/pmapae.c | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 10239b4e920..2094002ab63 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.150 2022/06/01 17:47:18 dv Exp $ */ +/* $OpenBSD: pmap.c,v 1.151 2022/06/29 14:24:29 dv Exp $ */ /* $NetBSD: pmap.c,v 1.3 2003/05/08 18:13:13 thorpej Exp $ */ /* @@ -1588,7 +1588,6 @@ pmap_copy_page(struct vm_page *srcpg, struct vm_page *dstpg) /* * pmap_remove_ptes: remove PTEs from a PTP * - * => must have proper locking on pmap_master_lock * => PTP must be mapped into KVA * => PTP should be null if pmap == pmap_kernel() */ @@ -1667,7 +1666,6 @@ pmap_remove_ptes(struct pmap *pmap, struct vm_page *ptp, vaddr_t ptpva, /* * pmap_remove_pte: remove a single PTE from a PTP * - * => must have proper locking on pmap_master_lock * => PTP must be mapped into KVA * => PTP should be null if pmap == pmap_kernel() * => returns true if we removed a mapping diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 17044d921cc..4abec69c710 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.218 2022/02/21 09:57:18 jsg Exp $ */ +/* $OpenBSD: pmap.c,v 1.219 2022/06/29 14:24:29 dv Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -1721,7 +1721,6 @@ pmap_copy_page_86(struct vm_page *srcpg, struct vm_page *dstpg) /* * pmap_remove_ptes: remove PTEs from a PTP * - * => must have proper locking on pmap_master_lock * => caller must hold pmap's lock * => PTP must be mapped into KVA * => PTP should be null if pmap == pmap_kernel() diff --git a/sys/arch/i386/i386/pmapae.c b/sys/arch/i386/i386/pmapae.c index ab07f90a2d4..f3fc242bc19 100644 --- a/sys/arch/i386/i386/pmapae.c +++ b/sys/arch/i386/i386/pmapae.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmapae.c,v 1.66 2022/01/02 05:30:07 jsg Exp $ */ +/* $OpenBSD: pmapae.c,v 1.67 2022/06/29 14:24:29 dv Exp $ */ /* * Copyright (c) 2006-2008 Michael Shalayeff @@ -1153,7 +1153,6 @@ pmap_copy_page_pae(struct vm_page *srcpg, struct vm_page *dstpg) /* * pmap_remove_ptes: remove PTEs from a PTP * - * => must have proper locking on pmap_master_lock * => caller must hold pmap's lock * => PTP must be mapped into KVA * => PTP should be null if pmap == pmap_kernel() -- 2.20.1