#2006 closed defect (fixed)

LEON3BSP MP: may wake one more CPU than expected

Reported by: Daniel Hellstrom Owned by: Joel Sherrill
Priority: normal Milestone: 4.10
Component: bsps Version: 4.10
Severity: normal Keywords:
Cc: gedare@… Blocked By:
Blocking:

Description

The SHM code always wakes one CPU more that configured, however
this has never been a problem before since RTEMS was running on all CPUs
or only two cores were available. With newer LEON designs a crash is caused.

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 12f3380..3711777 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;

}

Change History (5)

comment:1 Changed on Feb 2, 2012 at 2:13:49 PM by Daniel Hellstrom

Version: 4.10HEAD

comment:2 Changed on Feb 2, 2012 at 2:25:12 PM by Gedare

Cc: Gedare added

comment:3 Changed on Feb 2, 2012 at 3:22:20 PM by Joel Sherrill

Milestone: 4.114.10

comment:4 Changed on Feb 2, 2012 at 3:28:52 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

I see the email to -vc and it looks OK. Closing.

comment:5 Changed on Nov 24, 2014 at 6:56:19 PM by Gedare

Version: HEAD4.10
Note: See TracTickets for help on using tickets.