source: rtems/bsps/powerpc/virtex4/start/bspclean.c @ 65f868c

5
Last change on this file since 65f868c was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  This routine normally is part of start.s and usually returns
3 *  control to a monitor.
4 *
5 *  INPUT:  NONE
6 *
7 *  OUTPUT: NONE
8 *
9 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
10 *
11 *  COPYRIGHT (c) 1995 by i-cubed ltd.
12 *
13 *  To anyone who acknowledges that this file is provided "AS IS"
14 *  without any express or implied warranty:
15 *      permission to use, copy, modify, and distribute this file
16 *      for any purpose is hereby granted without fee, provided that
17 *      the above copyright notice and this notice appears in all
18 *      copies, and that the name of i-cubed limited not be used in
19 *      advertising or publicity pertaining to distribution of the
20 *      software without specific, written prior permission.
21 *      i-cubed limited makes no representations about the suitability
22 *      of this software for any purpose.
23 *
24 *  Derived from c/src/lib/libbsp/no_cpu/no_bsp/startup/bspclean.c:
25 *
26 *  COPYRIGHT (c) 1989-1999.
27 *  On-Line Applications Research Corporation (OAR).
28 *
29 *  The license and distribution terms for this file may be
30 *  found in the file LICENSE in this distribution or at
31 *  http://www.rtems.org/license/LICENSE.
32 */
33
34#include <bsp.h>
35#include <bsp/bootcard.h>
36
37static void _noopfun(void) {}
38
39void app_bsp_cleanup(void)
40__attribute__(( weak, alias("_noopfun") ));
41
42void bsp_fatal_extension(
43  rtems_fatal_source source,
44  bool always_set_to_false,
45  rtems_fatal_code error
46)
47{
48  if ( source == RTEMS_FATAL_SOURCE_EXIT ) {
49    app_bsp_cleanup();
50  }
51
52  /* All done.  Hang out. */
53  BSP_ask_for_reset();
54}
Note: See TracBrowser for help on using the repository browser.