Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/arch/sparc64/sparc64 Pull up revision 1.145 via pat...
details: https://anonhg.NetBSD.org/src/rev/2c2578002f4a
branches: netbsd-1-6
changeset: 530859:2c2578002f4a
user: tron <tron%NetBSD.org@localhost>
date: Tue Oct 14 09:59:02 2003 +0000
description:
Pull up revision 1.145 via patch (requested by martin in ticket #1522):
cache_flush_virt() is buggy, just use blast_dcache() instead.
this should fix PR 23093.
diffstat:
sys/arch/sparc64/sparc64/pmap.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r 002b9cbf8449 -r 2c2578002f4a sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c Sat Oct 11 23:25:46 2003 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c Tue Oct 14 09:59:02 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.120.2.4 2002/09/04 14:01:41 lukem Exp $ */
+/* $NetBSD: pmap.c,v 1.120.2.5 2003/10/14 09:59:02 tron Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF
/*
@@ -2020,8 +2020,6 @@
{
struct pmap *pm = pmap_kernel();
int64_t data;
- vaddr_t flushva = va;
- vsize_t flushsize = size;
int i, s, flush = 0;
ASSERT(va < INTSTACK || va > EINTSTACK);
@@ -2100,7 +2098,7 @@
#ifdef DEBUG
remove_stats.flushes ++;
#endif
- cache_flush_virt(flushva, flushsize);
+ blast_vcache();
}
simple_unlock(&pm->pm_lock);
splx(s);
@@ -2289,7 +2287,6 @@
{
int i, s, flush=0;
int64_t data;
- vaddr_t flushva = va;
/*
* In here we should check each pseg and if there are no more entries,
@@ -2383,7 +2380,7 @@
#ifdef DEBUG
remove_stats.flushes ++;
#endif
- cache_flush_virt(flushva, endva - flushva);
+ blast_vcache();
}
#ifdef DEBUG
if (pmapdebug & PDB_REMOVE)
Home |
Main Index |
Thread Index |
Old Index