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

4.115
Last change on this file since f4adc0d1 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
RevLine 
[72510eb2]1/* Copyright 2003, Shuchen Kate Feng <feng1@bnl.gov>,
2 *                    NSLS,Brookhaven National Laboratory
3 */
[7be6ad9]4#include <bsp.h>
[5734337]5#include <bsp/bootcard.h>
[7be6ad9]6#include <rtems/bspIo.h>
7#include <libcpu/stackTrace.h>
8
9#define AUTO_BOOT 0
10
[f4adc0d1]11void bsp_cleanup(
12  uint32_t status
13)
[7be6ad9]14{
15#if AUTO_BOOT
[ee732739]16  /* Till Straumann <strauman@slac.stanford.edu> for SVGM */
[5734337]17  bsp_reset();
[7be6ad9]18#else
[ee732739]19  /* Kate Feng <feng1@bnl.gov> for the MVME5500 */
[46a6fa91]20  printk("\nPrinting a stack trace for your convenience :-)\n");
[7be6ad9]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.