Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm/pmap When adjusting the max ASID count, check if ti-...
details: https://anonhg.NetBSD.org/src/rev/ad60872db127
branches: trunk
changeset: 990442:ad60872db127
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Oct 27 05:33:59 2021 +0000
description:
When adjusting the max ASID count, check if ti->ti_asid_max == 0 as
well. This defaults to 0 for the non-PMAP_TLB_NUM_PIDS case, so would
skip the updated test.
Fix for port-pmax/56466 (which affects all MIPS).
ok srkll@
diffstat:
sys/uvm/pmap/pmap_tlb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 8384f4343b36 -r ad60872db127 sys/uvm/pmap/pmap_tlb.c
--- a/sys/uvm/pmap/pmap_tlb.c Wed Oct 27 05:18:51 2021 +0000
+++ b/sys/uvm/pmap/pmap_tlb.c Wed Oct 27 05:33:59 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap_tlb.c,v 1.47 2021/10/08 07:17:32 skrll Exp $ */
+/* $NetBSD: pmap_tlb.c,v 1.48 2021/10/27 05:33:59 simonb Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.47 2021/10/08 07:17:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_tlb.c,v 1.48 2021/10/27 05:33:59 simonb Exp $");
/*
* Manages address spaces in a TLB.
@@ -379,7 +379,7 @@
#endif
const tlb_asid_t asid_max = pmap_md_tlb_asid_max();
- if (asid_max < ti->ti_asid_max) {
+ if (ti->ti_asid_max == 0 || asid_max < ti->ti_asid_max) {
ti->ti_asid_max = asid_max;
ti->ti_asids_free = TLBINFO_ASID_INITIAL_FREE(ti->ti_asid_max);
}
Home |
Main Index |
Thread Index |
Old Index