From ce4a7ae9da4c0999ac3ff90603e8198f136171b5 Mon Sep 17 00:00:00 2001 From: Daniel Hellstrom Date: Mon, 19 May 2014 17:27:55 +0200 Subject: SPARC: add BSP specific error handler Instead of calling the system call TA instruction directly it is better paractise to isolate the trap implementation to the system call functions. BSP_fatal_exit() is added. --- c/src/lib/libbsp/sparc/leon3/include/bsp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c/src/lib/libbsp/sparc/leon3/include/bsp.h') diff --git a/c/src/lib/libbsp/sparc/leon3/include/bsp.h b/c/src/lib/libbsp/sparc/leon3/include/bsp.h index cefb110c9c..a4a4a6f788 100644 --- a/c/src/lib/libbsp/sparc/leon3/include/bsp.h +++ b/c/src/lib/libbsp/sparc/leon3/include/bsp.h @@ -131,6 +131,8 @@ rtems_isr_entry set_vector( /* returns old vector */ int type /* RTEMS or RAW intr */ ); +void BSP_fatal_exit(uint32_t error); + void bsp_spurious_initialize( void ); /* Allocate 8-byte aligned non-freeable pre-malloc() memory. The function -- cgit v1.2.3