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:
745 bytes
|
Line | |
---|
1 | /* Copyright 2003, Shuchen Kate Feng <feng1@bnl.gov>, |
---|
2 | * NSLS,Brookhaven National Laboratory |
---|
3 | */ |
---|
4 | #include <bsp.h> |
---|
5 | #include <bsp/bootcard.h> |
---|
6 | #include <rtems/bspIo.h> |
---|
7 | #include <libcpu/stackTrace.h> |
---|
8 | |
---|
9 | #define AUTO_BOOT 0 |
---|
10 | |
---|
11 | void bsp_fatal_extension( |
---|
12 | rtems_fatal_source source, |
---|
13 | bool is_internal, |
---|
14 | rtems_fatal_code error |
---|
15 | ) |
---|
16 | { |
---|
17 | #if AUTO_BOOT |
---|
18 | /* Till Straumann <strauman@slac.stanford.edu> for SVGM */ |
---|
19 | bsp_reset(); |
---|
20 | #else |
---|
21 | /* Kate Feng <feng1@bnl.gov> for the MVME5500 */ |
---|
22 | printk("\nPrinting a stack trace for your convenience :-)\n"); |
---|
23 | CPU_print_stack(); |
---|
24 | printk("RTEMS terminated; Boot manually or turn on AUTO_BOOT.\n"); |
---|
25 | #endif |
---|
26 | } |
---|
27 | |
---|
28 | void 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.