source: rtems/c/src/lib/libbsp/powerpc/beatnik/startup/bspclean.c @ 696b5b1e

5
Last change on this file since 696b5b1e was 696b5b1e, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 6, 2017 at 1:37:43 PM

bsp/beatnik: More verbose fatal extension

  • Property mode set to 100644
File size: 623 bytes
Line 
1#include <bsp.h>
2#include <bsp/bootcard.h>
3#include <rtems/bspIo.h>
4
5void bsp_fatal_extension(
6  rtems_fatal_source source,
7  bool always_set_to_false,
8  rtems_fatal_code error
9)
10{
11  printk("fatal source: %s\n", rtems_fatal_source_text(source));
12
13  if (source == RTEMS_FATAL_SOURCE_EXCEPTION) {
14    rtems_exception_frame_print((const rtems_exception_frame *) error);
15  }
16
17  /* We can't go back to MotLoad since we blew it's memory area
18   * and vectors. Just pull the reset line...
19   */
20  printk(
21    "bsp_fatal_extension(): RTEMS terminated -- no way back to MotLoad "
22      "so I reset the card\n"
23  );
24  bsp_reset();
25}
Note: See TracBrowser for help on using the repository browser.