Changeset 5e92a40a in rtems


Ignore:
Timestamp:
May 21, 2014, 7:37:16 AM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
74f5eaf
Parents:
9bd7b3b1
git-author:
Daniel Hellstrom <daniel@…> (05/21/14 07:37:16)
git-committer:
Daniel Hellstrom <daniel@…> (10/06/14 12:44:44)
Message:

LEON3: use CPU_Fatal_halt for halt

By removing the bsp_reset() mechanism and instead relying on the
CPU_Fatal_halt() routine SMP and single-core can halt by updating
the _Internal_errors_What_happened structure and set the state to
SYSTEM_STATE_TERMINATED (the generic way). This will be better
for test scripts and debugger that can generically look into why
the OS stopped.

For SMP systems, only the fatal-reporting CPU waits until all other
CPUs are powered down (with a time out of one clock tick). The
reason why a fatal stop happend may be because CPU0 was soft-locked
up so we can never trust that CPU0 should do the halt for us.

Location:
c/src/lib/libbsp/sparc/leon3
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon3/Makefile.am

    r9bd7b3b1 r5e92a40a  
    3333
    3434# startup
    35 libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \
     35libbsp_a_SOURCES += startup/bspclean.c
     36libbsp_a_SOURCES += ../../shared/bsplibc.c \
    3637    ../../shared/bsppost.c ../../shared/bootcard.c startup/bspstart.c \
    3738    ../../sparc/shared/bsppretaskinghook.c startup/bsppredriver.c \
     
    4041    startup/spurious.c startup/bspidle.S startup/bspdelay.c \
    4142    ../../shared/bspinit.c ../../sparc/shared/startup/early_malloc.c
    42 libbsp_a_SOURCES += startup/bspreset.c
    4343libbsp_a_SOURCES += startup/cpucounter.c
    4444libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_exit.c
  • c/src/lib/libbsp/sparc/leon3/configure.ac

    r9bd7b3b1 r5e92a40a  
    4444 error which will hand over to debugger, simulator, etc.])
    4545
    46 RTEMS_BSP_CLEANUP_OPTIONS(0, 1, 1)
     46RTEMS_BSP_CLEANUP_OPTIONS(0, 0, 1)
    4747RTEMS_BSP_LINKCMDS
    4848
Note: See TracChangeset for help on using the changeset viewer.