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 fix the previous to compile !MULTIPROCE...
details: https://anonhg.NetBSD.org/src/rev/93f16d46ecbb
branches: trunk
changeset: 750197:93f16d46ecbb
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Dec 20 03:48:30 2009 +0000
description:
fix the previous to compile !MULTIPROCESSOR.
diffstat:
sys/arch/sparc/sparc/pmap.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r 3696c25c2c00 -r 93f16d46ecbb sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c Sun Dec 20 03:42:29 2009 +0000
+++ b/sys/arch/sparc/sparc/pmap.c Sun Dec 20 03:48:30 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.338 2009/12/20 03:41:49 mrg Exp $ */
+/* $NetBSD: pmap.c,v 1.339 2009/12/20 03:48:30 mrg Exp $ */
/*
* Copyright (c) 1996
@@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.338 2009/12/20 03:41:49 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.339 2009/12/20 03:48:30 mrg Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -4306,9 +4306,11 @@
{
int *upt, *kpt;
+#if defined(MULTIPROCESSOR)
/* Did this cpu attach? */
if (pmap_kernel()->pm_reg_ptps[n] == 0)
continue;
+#endif
upt = pool_get(&L1_pool, flags);
pm->pm_reg_ptps[n] = upt;
@@ -4362,9 +4364,11 @@
{
int *pt;
+#if defined(MULTIPROCESSOR)
/* Did this cpu attach? */
if (pmap_kernel()->pm_reg_ptps[n] == 0)
continue;
+#endif
pt = pm->pm_reg_ptps[n];
pm->pm_reg_ptps[n] = NULL;
Home |
Main Index |
Thread Index |
Old Index