Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#2009 closed defect (fixed)

LEON3: CPU index intialization moved to bspstart.c

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

Description

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(-)

Attachments (1)

0005-LEON3-CPU-index-intialization-_HEAD.patch (2.3 KB) - added by Daniel Hellstrom on 02/02/12 at 15:21:28.
patch for HEAD

Download all attachments as: .zip

Change History (5)

Changed on 02/02/12 at 15:21:28 by Daniel Hellstrom

patch for HEAD

comment:1 Changed on 02/02/12 at 15:25:41 by Daniel Hellstrom

blocked: 2010

comment:2 Changed on 02/02/12 at 15:25:58 by Daniel Hellstrom

rep_platform: Allsparc

comment:3 Changed on 02/02/12 at 17:03:13 by Joel Sherrill

Resolution: fixed
Status: newclosed

I think I got this one dealt with. Closing.

comment:4 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.