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 | |
---|
37 | static void _noopfun(void) {} |
---|
38 | |
---|
39 | void app_bsp_cleanup(void) |
---|
40 | __attribute__(( weak, alias("_noopfun") )); |
---|
41 | |
---|
42 | void 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 | } |
---|