From 5e92a40a38dc65958e56313f3a638cfe20c4b82b Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Wed, 21 May 2014 09:37:16 +0200 Subject: 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. --- c/src/lib/libbsp/sparc/leon3/configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/src/lib/libbsp/sparc/leon3/configure.ac') diff --git a/c/src/lib/libbsp/sparc/leon3/configure.ac b/c/src/lib/libbsp/sparc/leon3/configure.ac index 8ace8a30fd..c29dc529bb 100644 --- a/c/src/lib/libbsp/sparc/leon3/configure.ac +++ b/c/src/lib/libbsp/sparc/leon3/configure.ac @@ -43,7 +43,7 @@ RTEMS_BSPOPTS_HELP([BSP_POWER_DOWN_AT_FATAL_HALT], [If defined, CPU is powered down on fatal exit. Otherwise generate system error which will hand over to debugger, simulator, etc.]) -RTEMS_BSP_CLEANUP_OPTIONS(0, 1, 1) +RTEMS_BSP_CLEANUP_OPTIONS(0, 0, 1) RTEMS_BSP_LINKCMDS # Explicitly list all Makefiles here -- cgit v1.2.3