diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2012-02-02 08:46:23 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-02-02 10:09:46 -0600 |
commit | 9530716cd45ef7bff034c5e63f6c760369e586fc (patch) | |
tree | 572e0046db81fb67d8fcca348f1387380a9f026d | |
parent | Upgrade to 4.10.2 (diff) | |
download | rtems-9530716cd45ef7bff034c5e63f6c760369e586fc.tar.bz2 |
LEON3BSP MP: may wake one more CPU than expected
The SHM code always wakes one CPU more that configured, however
this has never been a problem since RTEMS will be running on all CPUs
or only two cores were available.
PR 2006/bsps
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c index 609c2b1d98..2c9de4c52c 100644 --- a/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c +++ b/c/src/lib/libbsp/sparc/leon3/shmsupp/getcfg.c @@ -114,7 +114,7 @@ void Shm_Get_configuration( if (LEON3_Cpu_Index == 0) { tmp = 0; for (i = 1; - i < (Configuration.User_multiprocessing_table)->maximum_nodes+1; i++) + i < (Configuration.User_multiprocessing_table)->maximum_nodes; i++) tmp |= (1 << i); LEON3_IrqCtrl_Regs->mpstat = tmp; } |