source: rtems/c/src/lib/libbsp/powerpc/mvme5500/startup/bspclean.c @ 48bff53b

4.115
Last change on this file since 48bff53b was 48bff53b, checked in by Sebastian Huber <sebastian.huber@…>, on 12/06/12 at 16:47:30

score: rtems_initialize_start_multitasking()

Do not return from rtems_initialize_start_multitasking() and call
rtems_fatal() instead with a fatal source of RTEMS_FATAL_SOURCE_EXIT and
a fatal code with the exit status.

Remove all bsp_cleanup() functions. The boot_card() is now a no return
function.

  • Property mode set to 100644
File size: 652 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
11void 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}
Note: See TracBrowser for help on using the repository browser.