[Bug 2006] New: LEON3BSP MP: may wake one more CPU than expected

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Feb 2 14:55:58 UTC 2012


https://www.rtems.org/bugzilla/show_bug.cgi?id=2006

           Summary: LEON3BSP MP: may wake one more CPU than expected
           Product: RTEMS
           Version: 4.10
          Platform: sparc
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: bsps
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: daniel at gaisler.com


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;
   }

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list