summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2024-02-07 20:54:54 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2024-02-07 20:54:54 +0000
commit4501a7a266fafcf9c59da2d0f60d6168b556d8e4 (patch)
treed1cab3a3e4113501c9898d67ab0868ff81a4cd4e /sys/arch/m88k
parentfa59080cc0803611066efff954018dc1a7b00d4c (diff)
Use tlb_flush() rather than complete invalidation in pmap_set_modify().
This has been missed in 1.68.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/pmap.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/arch/m88k/m88k/pmap.c b/sys/arch/m88k/m88k/pmap.c
index f80911ec19c..a5bdebdbf2e 100644
--- a/sys/arch/m88k/m88k/pmap.c
+++ b/sys/arch/m88k/m88k/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.86 2020/06/23 02:18:58 aoyama Exp $ */
+/* $OpenBSD: pmap.c,v 1.87 2024/02/07 20:54:53 miod Exp $ */
/*
* Copyright (c) 2001-2004, 2010, Miodrag Vallat.
@@ -389,7 +389,7 @@ tlb_flush(pmap_t pmap, vaddr_t va, pt_entry_t pte)
/*
* [INTERNAL]
* Update translation cache entry for `va' in pmap_kernel() to `pte'. May
- * flush insteai of updating.
+ * flush instead of updating.
*/
void
tlb_kflush(vaddr_t va, pt_entry_t pte)
@@ -1886,10 +1886,7 @@ pmap_set_modify(pmap_t pmap, vaddr_t va)
pg->mdpage.pv_flags |= PG_M_U;
- if (pmap == pmap_kernel())
- set_dcmd(CMMU_DCMD_INV_SATC);
- else
- set_dcmd(CMMU_DCMD_INV_UATC);
+ tlb_flush(pmap, va, *pte);
return (TRUE);
}