diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2014-05-20 17:45:07 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2014-10-06 13:19:18 +0200 |
commit | 9bd7b3b1a26adc41678ec4d4a1d97f057cdb43a7 (patch) | |
tree | e696df2a0aa20c45ac84c3d5de06a53731599495 /c/src/lib/libbsp/sparc/erc32 | |
parent | SPARC: add BSP specific error handler (diff) | |
download | rtems-9bd7b3b1a26adc41678ec4d4a1d97f057cdb43a7.tar.bz2 |
SPARC: Fatal_halt use source and exit codes
The Fatal_halt handler now have two options, either halt
as before or enter system error state to return to
debugger or simulator. The exit-code is now also
propagated to the debugger which is very useful for
testing.
The CPU_Fatal_halt handler was split up into two, since
the only the LEON3 support the CPU power down.
The LEON3 halt now uses the power-down instruction to save
CPU power. This doesn't stop a potential watch-dog timer
from expiring.
Diffstat (limited to 'c/src/lib/libbsp/sparc/erc32')
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/Makefile.am | 1 | ||||
-rw-r--r-- | c/src/lib/libbsp/sparc/erc32/configure.ac | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/erc32/Makefile.am b/c/src/lib/libbsp/sparc/erc32/Makefile.am index b9f1c5348e..00e398b54f 100644 --- a/c/src/lib/libbsp/sparc/erc32/Makefile.am +++ b/c/src/lib/libbsp/sparc/erc32/Makefile.am @@ -46,6 +46,7 @@ libbsp_a_SOURCES += startup/bspidle.c libbsp_a_SOURCES += startup/bspdelay.c libbsp_a_SOURCES += ../../sparc/shared/startup/early_malloc.c libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_exit.c +libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_halt.c # ISR Handler libbsp_a_SOURCES += ../../sparc/shared/cpu.c libbsp_a_SOURCES += ../../sparc/shared/irq_asm.S diff --git a/c/src/lib/libbsp/sparc/erc32/configure.ac b/c/src/lib/libbsp/sparc/erc32/configure.ac index 4cbfb7e3d4..72a75d1cfc 100644 --- a/c/src/lib/libbsp/sparc/erc32/configure.ac +++ b/c/src/lib/libbsp/sparc/erc32/configure.ac @@ -43,6 +43,11 @@ RTEMS_BSPOPTS_HELP([ENABLE_SIS_QUIRKS], BSP will be enabled. In particular, SIS requires special initialization not used on real ERC32 hardware.]) +RTEMS_BSPOPTS_SET([BSP_POWER_DOWN_AT_FATAL_HALT],[*],[]) +RTEMS_BSPOPTS_HELP([BSP_POWER_DOWN_AT_FATAL_HALT], +[If defined, CPU is spinning on fatal exit. Otherwise generate system + error which will hand over to debugger, simulator, etc.]) + RTEMS_BSP_CLEANUP_OPTIONS(0,1,1) # Explicitly list all Makefiles here |