Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc use CPU_READY(). disable smp_tlb_flush_...
details: https://anonhg.NetBSD.org/src/rev/38e1f367356f
branches: trunk
changeset: 512579:38e1f367356f
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Jul 10 15:12:59 2001 +0000
description:
use CPU_READY(). disable smp_tlb_flush_*() for now; they hang.
diffstat:
sys/arch/sparc/sparc/pmap.c | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diffs (68 lines):
diff -r b3d1c4b00dbb -r 38e1f367356f sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Tue Jul 10 15:11:54 2001 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Tue Jul 10 15:12:59 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.196 2001/07/08 15:58:42 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.197 2001/07/10 15:12:59 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -582,8 +582,7 @@
struct cpu_info *cpi = cpus[n];
struct xpmsg_flush_page *p;
- if (cpi == NULL || cpuinfo.mid == cpi->mid ||
- (cpi->flags & CPUFLG_READY) == 0)
+ if (CPU_READY(cpi))
continue;
p = &cpi->msg.u.xpmsg_flush_page;
s = splhigh();
@@ -613,8 +612,7 @@
struct cpu_info *cpi = cpus[n];
struct xpmsg_flush_segment *p;
- if (cpi == NULL || cpuinfo.mid == cpi->mid ||
- (cpi->flags & CPUFLG_READY) == 0)
+ if (CPU_READY(cpi))
continue;
p = &cpi->msg.u.xpmsg_flush_segment;
s = splhigh();
@@ -645,8 +643,7 @@
struct cpu_info *cpi = cpus[n];
struct xpmsg_flush_region *p;
- if (cpi == NULL || cpuinfo.mid == cpi->mid ||
- (cpi->flags & CPUFLG_READY) == 0)
+ if (CPU_READY(cpi))
continue;
p = &cpi->msg.u.xpmsg_flush_region;
s = splhigh();
@@ -675,8 +672,7 @@
struct cpu_info *cpi = cpus[n];
struct xpmsg_flush_context *p;
- if (cpi == NULL || cpuinfo.mid == cpi->mid ||
- (cpi->flags & CPUFLG_READY) == 0)
+ if (CPU_READY(cpi))
continue;
p = &cpi->msg.u.xpmsg_flush_context;
s = splhigh();
@@ -703,8 +699,7 @@
for (n = 0; n < ncpu; n++) {
struct cpu_info *cpi = cpus[n];
- if (cpi == NULL || cpuinfo.mid == cpi->mid ||
- (cpi->flags & CPUFLG_READY) == 0)
+ if (CPU_READY(cpi))
continue;
s = splhigh();
simple_lock(&cpi->msg.lock);
@@ -716,7 +711,7 @@
}
#endif
-#if defined(MULTIPROCESSOR) /* && 0 */
+#if defined(MULTIPROCESSOR) && 0
#define tlb_flush_page(va) smp_tlb_flush_page((int)va)
#define tlb_flush_segment(vr, vs) smp_tlb_flush_segment(vr, vs)
#define tlb_flush_region(vr) smp_tlb_flush_region(vr)
Home |
Main Index |
Thread Index |
Old Index