diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-20 16:49:57 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-07-28 08:54:47 +0200 |
commit | 07527d5991ae911fe8656c356e0ec66ff149818b (patch) | |
tree | e0c4fd4a5e5f10e950107d6c33b3655e98221839 | |
parent | 94b27519604760a5987eccc8a36a2713c8195854 (diff) |
bsp/leon3: Move leon3_power_down_loop()
-rw-r--r-- | bsps/sparc/leon3/include/bsp/leon3.h | 6 | ||||
-rw-r--r-- | bsps/sparc/leon3/include/leon.h | 2 | ||||
-rw-r--r-- | bsps/sparc/leon3/start/bsp_fatal_halt.c | 2 | ||||
-rw-r--r-- | bsps/sparc/leon3/start/bspclean.c | 3 |
4 files changed, 8 insertions, 5 deletions
diff --git a/bsps/sparc/leon3/include/bsp/leon3.h b/bsps/sparc/leon3/include/bsp/leon3.h index cc48226c47..d555485b9d 100644 --- a/bsps/sparc/leon3/include/bsp/leon3.h +++ b/bsps/sparc/leon3/include/bsp/leon3.h @@ -67,6 +67,12 @@ extern "C" { extern uint32_t LEON3_Cpu_Index; /** + * @brief Sets %asr19 to zero to enter the power-down mode of the processor in + * an infinite loop. + */ +RTEMS_NO_RETURN void leon3_power_down_loop( void ); + +/** * @brief This constant represents the flush instruction cache flag of the LEON * cache control register. */ diff --git a/bsps/sparc/leon3/include/leon.h b/bsps/sparc/leon3/include/leon.h index 49d1ff8676..5f26ac3ea8 100644 --- a/bsps/sparc/leon3/include/leon.h +++ b/bsps/sparc/leon3/include/leon.h @@ -336,8 +336,6 @@ extern int leon3_timer_core_index; */ extern unsigned int leon3_timer_prescaler; -RTEMS_NO_RETURN void leon3_power_down_loop(void); - #endif /* !ASM */ #ifdef __cplusplus diff --git a/bsps/sparc/leon3/start/bsp_fatal_halt.c b/bsps/sparc/leon3/start/bsp_fatal_halt.c index fa907a3363..c6159227a2 100644 --- a/bsps/sparc/leon3/start/bsp_fatal_halt.c +++ b/bsps/sparc/leon3/start/bsp_fatal_halt.c @@ -12,7 +12,7 @@ */ #include <bsp.h> -#include <leon.h> +#include <bsp/leon3.h> #ifdef BSP_POWER_DOWN_AT_FATAL_HALT diff --git a/bsps/sparc/leon3/start/bspclean.c b/bsps/sparc/leon3/start/bspclean.c index 0e109140df..9f86b18d51 100644 --- a/bsps/sparc/leon3/start/bspclean.c +++ b/bsps/sparc/leon3/start/bspclean.c @@ -21,10 +21,9 @@ #include <bsp.h> #include <bsp/bootcard.h> +#include <bsp/leon3.h> #include <rtems/score/smpimpl.h> -#include <leon.h> - void bsp_fatal_extension( rtems_fatal_source source, bool always_set_to_false, |