From 9bd7b3b1a26adc41678ec4d4a1d97f057cdb43a7 Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Tue, 20 May 2014 17:45:07 +0200 Subject: 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. --- c/src/lib/libbsp/sparc/leon3/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'c/src/lib/libbsp/sparc/leon3/Makefile.am') diff --git a/c/src/lib/libbsp/sparc/leon3/Makefile.am b/c/src/lib/libbsp/sparc/leon3/Makefile.am index b8079c64d1..fa297acdc4 100644 --- a/c/src/lib/libbsp/sparc/leon3/Makefile.am +++ b/c/src/lib/libbsp/sparc/leon3/Makefile.am @@ -42,6 +42,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \ libbsp_a_SOURCES += startup/bspreset.c libbsp_a_SOURCES += startup/cpucounter.c libbsp_a_SOURCES += ../../sparc/shared/startup/bsp_fatal_exit.c +libbsp_a_SOURCES += startup/bsp_fatal_halt.c # ISR Handler libbsp_a_SOURCES += ../../sparc/shared/cpu.c -- cgit v1.2.3