#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 Feb 2, 2012 at 3:21:28 PM.
patch for HEAD

Download all attachments as: .zip

Change History (5)

Changed on Feb 2, 2012 at 3:21:28 PM by Daniel Hellstrom

patch for HEAD

comment:1 Changed on Feb 2, 2012 at 3:25:41 PM by Daniel Hellstrom

blocked: 2010

comment:2 Changed on Feb 2, 2012 at 3:25:58 PM by Daniel Hellstrom

rep_platform: Allsparc

comment:3 Changed on Feb 2, 2012 at 5:03:13 PM by Joel Sherrill

Resolution: fixed
Status: newclosed

I think I got this one dealt with. Closing.

comment:4 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare

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.