summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_halt.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_halt.c')
-rw-r--r--c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_halt.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_halt.c b/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_halt.c
deleted file mode 100644
index f32ddaafc0..0000000000
--- a/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_halt.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/**
- * @file
- * @ingroup sparc_bsp
- * @brief ERC32/LEON2 BSP Fatal_halt handler.
- *
- * COPYRIGHT (c) 2014.
- * Aeroflex Gaisler AB.
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <bsp.h>
-
-#ifdef BSP_POWER_DOWN_AT_FATAL_HALT
-
-/* Spin CPU on fatal error exit */
-void _CPU_Fatal_halt(uint32_t source, uint32_t error)
-{
- uint32_t level = sparc_disable_interrupts();
-
- __asm__ volatile ( "mov %0, %%g1 " : "=r" (level) : "0" (level) );
-
- while (1) ; /* loop forever */
-}
-
-#else
-
-/* return to debugger, simulator, hypervisor or similar by exiting
- * with an error code. g1=1, g2=FATAL_SOURCE, G3=error-code.
- */
-void _CPU_Fatal_halt(uint32_t source, uint32_t error)
-{
- sparc_syscall_exit(source, error);
-}
-
-#endif