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 normalise #if defined(MULTIPROCESSOR) u...
details: https://anonhg.NetBSD.org/src/rev/5b0a3007c613
branches: trunk
changeset: 768660:5b0a3007c613
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Aug 24 02:51:13 2011 +0000
description:
normalise #if defined(MULTIPROCESSOR) usage.
diffstat:
sys/arch/sparc/sparc/pmap.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (53 lines):
diff -r ec5eafe9a7bd -r 5b0a3007c613 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Tue Aug 23 22:14:51 2011 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Wed Aug 24 02:51:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.343 2011/06/18 02:05:08 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.344 2011/08/24 02:51:13 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.343 2011/06/18 02:05:08 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.344 2011/08/24 02:51:13 mrg Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -3501,7 +3501,7 @@
extern char etext[];
extern char kernel_text[];
vaddr_t va;
-#ifdef MULTIPROCESSOR
+#if defined(MULTIPROCESSOR)
vsize_t off;
size_t cpuinfo_len = sizeof(struct cpu_info);
uint8_t *cpuinfo_data;
@@ -4542,14 +4542,14 @@
if (pm->pm_ctx)
tlb_flush_region(VRTOVA(vr), pm->pm_ctxnum,
PMAP_CPUSET(pm));
-#ifdef MULTIPROCESSOR
+#if defined(MULTIPROCESSOR)
/* Invalidate level 1 PTP entries on all CPUs */
for (; n < sparc_ncpus; n++) {
if ((cpus[n]->flags & CPUFLG_HATCHED) == 0)
continue;
#endif
setpgt4m(&pm->pm_reg_ptps[n][vr], SRMMU_TEINVALID);
-#ifdef MULTIPROCESSOR
+#if defined(MULTIPROCESSOR)
}
#endif
@@ -6376,7 +6376,7 @@
setpgt4m(&ptd[i], SRMMU_TEINVALID);
/* Replicate segment allocation in each CPU's region table */
-#ifdef MULTIPROCESSOR
+#if defined(MULTIPROCESSOR)
for (i = 0; i < sparc_ncpus; i++)
#else
i = 0;
Home |
Main Index |
Thread Index |
Old Index