Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/bcm53xx adjust arm_cpu_max by 1 to be number...



details:   https://anonhg.NetBSD.org/src/rev/8a60ce68578a
branches:  trunk
changeset: 328201:8a60ce68578a
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Mar 29 14:02:46 2014 +0000

description:
adjust arm_cpu_max by 1 to be number of cpus

diffstat:

 sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a52d64995bcc -r 8a60ce68578a sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c
--- a/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c Sat Mar 29 14:00:30 2014 +0000
+++ b/sys/arch/evbarm/bcm53xx/bcm53xx_machdep.c Sat Mar 29 14:02:46 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm53xx_machdep.c,v 1.7 2013/06/30 22:02:56 matt Exp $ */
+/*     $NetBSD: bcm53xx_machdep.c,v 1.8 2014/03/29 14:02:46 matt Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 #define IDM_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.7 2013/06/30 22:02:56 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm53xx_machdep.c,v 1.8 2014/03/29 14:02:46 matt Exp $");
 
 #include "opt_evbarm_boardtype.h"
 #include "opt_broadcom.h"
@@ -200,7 +200,7 @@
 #ifdef MULTIPROCESSOR
        uint32_t scu_cfg = bus_space_read_4(bcm53xx_armcore_bst, bcm53xx_armcore_bsh,
            ARMCORE_SCU_BASE + SCU_CFG);
-       arm_cpu_max = scu_cfg & SCU_CFG_CPUMAX;
+       arm_cpu_max = 1 + (scu_cfg & SCU_CFG_CPUMAX);
        membar_producer();
 #endif
        /*



Home | Main Index | Thread Index | Old Index