Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips It's not necessary to (re-) assign pmap->...
details: https://anonhg.NetBSD.org/src/rev/8213d6bc9e7d
branches: trunk
changeset: 484165:8213d6bc9e7d
user: nisimura <nisimura%NetBSD.org@localhost>
date: Mon Mar 27 08:56:21 2000 +0000
description:
It's not necessary to (re-) assign pmap->pm_asidgen whenever ASID
(TLBpid) is bumped. It's ok just in the case when pmap_asid_generation
is bumped.
diffstat:
sys/arch/mips/mips/pmap.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r c9522f680202 -r 8213d6bc9e7d sys/arch/mips/mips/pmap.c
--- a/sys/arch/mips/mips/pmap.c Mon Mar 27 08:27:03 2000 +0000
+++ b/sys/arch/mips/mips/pmap.c Mon Mar 27 08:56:21 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.83 2000/03/19 19:16:14 soren Exp $ */
+/* $NetBSD: pmap.c,v 1.84 2000/03/27 08:56:21 nisimura Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.83 2000/03/19 19:16:14 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.84 2000/03/27 08:56:21 nisimura Exp $");
/*
* Manages physical address maps.
@@ -1841,11 +1841,11 @@
else {
if (pmap_next_asid == MIPS_TLB_NUM_PIDS) {
MachTLBFlush();
+ pmap_asid_generation++; /* ok to wrap to 0 */
pmap_next_asid = 1; /* 0 means invalid */
- pmap_asid_generation++; /* ok to wrap to 0 */
+ pmap->pm_asidgen = pmap_asid_generation;
}
pmap->pm_asid = pmap_next_asid++;
- pmap->pm_asidgen = pmap_asid_generation;
}
#ifdef DEBUG
Home |
Main Index |
Thread Index |
Old Index