[Bug 2009] New: LEON3: CPU index intialization moved to bspstart.c

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Feb 2 16:21:28 UTC 2012


           Summary: LEON3: CPU index intialization moved to bspstart.c
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: bsps
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: daniel at gaisler.com

Created attachment 1412
  --> https://www.rtems.org/bugzilla/attachment.cgi?id=1412
patch for HEAD

All LEON3/4 systems have a CPU-id, if on a single-CPU system the
ID is always zero. On a multicore system it ranges from 0 to 15.

The CPU index should always by updated even in a non-MP RTEMS OS
since the CPU running RTEMS may not always be CPU0. For example
when RTEMS runs on CPU1 and Linux on CPU0 in a mixed ASMP system.

The old code executed within the IRQ controller initialization code
makes no sense since the ASR register is a CPU register, it has
nothing to do with AMBA initialization either.

 c/src/lib/libbsp/sparc/leon3/amba/amba.c        |   18 ------------------
 c/src/lib/libbsp/sparc/leon3/startup/bspstart.c |   18 ++++++++++++++++++
 2 files changed, 18 insertions(+), 18 deletions(-)

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