source:
rtems/bsps/powerpc/beatnik/start/bspclean.c
@
a2aec0b7
Last change on this file since a2aec0b7 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35 | |
---|---|
|
|
File size: 623 bytes |
Rev | Line | |
---|---|---|
[b7a6d23a] | 1 | #include <bsp.h> |
[3a1d9c6] | 2 | #include <bsp/bootcard.h> |
[b7a6d23a] | 3 | #include <rtems/bspIo.h> |
4 | ||
[a052181] | 5 | void bsp_fatal_extension( |
6 | rtems_fatal_source source, | |
[6a9282d] | 7 | bool always_set_to_false, |
[a052181] | 8 | rtems_fatal_code error |
[c4852431] | 9 | ) |
[b7a6d23a] | 10 | { |
[696b5b1e] | 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 | ||
[b7a6d23a] | 17 | /* We can't go back to MotLoad since we blew it's memory area |
18 | * and vectors. Just pull the reset line... | |
19 | */ | |
[c4852431] | 20 | printk( |
[a052181] | 21 | "bsp_fatal_extension(): RTEMS terminated -- no way back to MotLoad " |
[c4852431] | 22 | "so I reset the card\n" |
23 | ); | |
[b7a6d23a] | 24 | bsp_reset(); |
25 | } |
Note: See TracBrowser
for help on using the repository browser.