source: rtems/c/src/lib/libbsp/sparc/shared/startup/bsp_fatal_exit.c @ ce4a7ae

4.115
Last change on this file since ce4a7ae was ce4a7ae, checked in by Daniel Hellstrom <daniel@…>, on May 19, 2014 at 3:27:55 PM

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.

  • Property mode set to 100644
File size: 422 bytes
Line 
1/**
2 * @file
3 * @ingroup sparc_bsp
4 * @brief ERC32/LEON2/LEON3 BSP specific exit handler.
5 *
6 *  COPYRIGHT (c) 2014.
7 *  Aeroflex Gaisler AB.
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14#include <rtems.h>
15
16void BSP_fatal_exit(uint32_t error)
17{
18  sparc_syscall_exit(RTEMS_FATAL_SOURCE_BSP, error);
19}
Note: See TracBrowser for help on using the repository browser.