source: rtems/c/src/lib/libbsp/m68k/uC5282/startup/bspclean.c @ a052181

4.115
Last change on this file since a052181 was a052181, checked in by Sebastian Huber <sebastian.huber@…>, on 11/14/12 at 08:59:10

score: Add RTEMS_FATAL_SOURCE_EXIT

Include <bsp/default-initial-extension.h> in all BSPs. Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup(). Move previous
bsp_cleanup() code into bsp_fatal_extension().

  • Property mode set to 100644
File size: 645 bytes
Line 
1/*
2 *  SBC5206 bsp_cleanup
3 *
4 *  This routine returns control from RTEMS to the monitor.
5 *
6 *  Author: W. Eric Norum <norume@aps.anl.gov>
7 *
8 *  COPYRIGHT (c) 2005.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 */
15
16#include <bsp.h>
17#include <bsp/bootcard.h>
18
19void bsp_fatal_extension(
20  rtems_fatal_source source,
21  bool is_internal,
22  rtems_fatal_code error
23)
24{
25  bsp_reset();
26}
27
28void bsp_cleanup(
29  uint32_t status
30)
31{
32  rtems_fatal( RTEMS_FATAL_SOURCE_EXIT, status );
33}
Note: See TracBrowser for help on using the repository browser.