diff options
author | Daniel Hellstrom <daniel@gaisler.com> | 2014-05-19 17:27:55 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2014-10-06 09:34:24 +0200 |
commit | ce4a7ae9da4c0999ac3ff90603e8198f136171b5 (patch) | |
tree | c7ee8bd590f355f5728579d5cf6337664262f6f4 /c/src/lib/libbsp/sparc/leon2/include/bsp.h | |
parent | SPARC BSPs: remove BSP_fatal_return unreached code (diff) | |
download | rtems-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.h | 2 |
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 |