summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon2/include/bsp.h
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2014-05-19 17:27:55 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2014-10-06 09:34:24 +0200
commitce4a7ae9da4c0999ac3ff90603e8198f136171b5 (patch)
treec7ee8bd590f355f5728579d5cf6337664262f6f4 /c/src/lib/libbsp/sparc/leon2/include/bsp.h
parentSPARC BSPs: remove BSP_fatal_return unreached code (diff)
downloadrtems-ce4a7ae9da4c0999ac3ff90603e8198f136171b5.tar.bz2
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.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/leon2/include/bsp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/include/bsp.h b/c/src/lib/libbsp/sparc/leon2/include/bsp.h
index 63af19efb7..1943baf44d 100644
--- a/c/src/lib/libbsp/sparc/leon2/include/bsp.h
+++ b/c/src/lib/libbsp/sparc/leon2/include/bsp.h
@@ -113,6 +113,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