Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Wrap arm_cpu_marker if #ifdef MPDEBUG.



details:   https://anonhg.NetBSD.org/src/rev/1533920819d8
branches:  trunk
changeset: 997641:1533920819d8
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Mar 17 08:37:55 2019 +0000

description:
Wrap arm_cpu_marker if #ifdef MPDEBUG.

One day a9_mpsubr.S will die

diffstat:

 sys/arch/arm/arm32/cpu.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r 5cfa94a6700e -r 1533920819d8 sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c  Sun Mar 17 08:34:20 2019 +0000
+++ b/sys/arch/arm/arm32/cpu.c  Sun Mar 17 08:37:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.128 2019/01/27 02:08:37 pgoyette Exp $       */
+/*     $NetBSD: cpu.c,v 1.129 2019/03/17 08:37:55 skrll Exp $  */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -46,7 +46,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.128 2019/01/27 02:08:37 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.129 2019/03/17 08:37:55 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -70,8 +70,12 @@
 
 volatile u_int arm_cpu_hatched __cacheline_aligned = 0;
 volatile uint32_t arm_cpu_mbox __cacheline_aligned = 0;
+u_int arm_cpu_max = 1;
+
+#ifdef MPDEBUG
 uint32_t arm_cpu_marker[2] __cacheline_aligned = { 0, 0 };
-u_int arm_cpu_max = 1;
+#endif
+
 #endif
 
 /* Prototypes */



Home | Main Index | Thread Index | Old Index