4.115
Last change
on this file since 8babe99 was
f4adc0d1,
checked in by Joel Sherrill <joel.sherrill@…>, on 07/13/11 at 18:35:43
|
2011-07-13 Joel Sherrill <joel.sherrilL@…>
PR 1824/cpukit
- startup/bspclean.c: Return exit/shutdown status back to boot_card().
boot_card() propagates this to bsp_cleanup() and returns it to the
assembly that started the application. bsp_cleanup() prototype
changed.
|
-
Property mode set to
100644
|
File size:
588 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_cleanup( |
---|
12 | uint32_t status |
---|
13 | ) |
---|
14 | { |
---|
15 | #if AUTO_BOOT |
---|
16 | /* Till Straumann <strauman@slac.stanford.edu> for SVGM */ |
---|
17 | bsp_reset(); |
---|
18 | #else |
---|
19 | /* Kate Feng <feng1@bnl.gov> for the MVME5500 */ |
---|
20 | printk("\nPrinting a stack trace for your convenience :-)\n"); |
---|
21 | CPU_print_stack(); |
---|
22 | printk("RTEMS terminated; Boot manually or turn on AUTO_BOOT.\n"); |
---|
23 | #endif |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.