5
Last change
on this file since 9964895 was
9964895,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35
|
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
773 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * @ingroup sparc_leon3 |
---|
4 | * @brief LEON3 BSP Fatal_halt handler. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 2014. |
---|
7 | * Aeroflex Gaisler AB. |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.org/license/LICENSE. |
---|
12 | */ |
---|
13 | |
---|
14 | #include <bsp.h> |
---|
15 | #include <leon.h> |
---|
16 | |
---|
17 | #ifdef BSP_POWER_DOWN_AT_FATAL_HALT |
---|
18 | |
---|
19 | /* Power down LEON CPU on fatal error exit */ |
---|
20 | void _CPU_Fatal_halt(uint32_t source, uint32_t error) |
---|
21 | { |
---|
22 | sparc_disable_interrupts(); |
---|
23 | leon3_power_down_loop(); |
---|
24 | } |
---|
25 | |
---|
26 | #else |
---|
27 | |
---|
28 | /* return to debugger, simulator, hypervisor or similar by exiting |
---|
29 | * with an error code. g1=1, g2=FATAL_SOURCE, G3=error-code. |
---|
30 | */ |
---|
31 | void _CPU_Fatal_halt(uint32_t source, uint32_t error) |
---|
32 | { |
---|
33 | sparc_syscall_exit(source, error); |
---|
34 | } |
---|
35 | |
---|
36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.