summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-20 16:49:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-01-24 11:46:52 +0100
commitd925efb5aadf17684b5bfc52afe92285e51d2b39 (patch)
tree6b1d5b346bae4ec3b369dfa2c1e030ddfdf6ee5b
parentcc5940bc634e65e60bb1c3b9a57ba0f74c44e226 (diff)
bsp/leon3: Move leon3_power_down_loop()
-rw-r--r--bsps/sparc/leon3/include/bsp/leon3.h6
-rw-r--r--bsps/sparc/leon3/include/leon.h2
-rw-r--r--bsps/sparc/leon3/start/bsp_fatal_halt.c2
-rw-r--r--bsps/sparc/leon3/start/bspclean.c3
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 03ec835bdd..03f9d925b2 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 7aa26b43b9..9985ae3280 100644
--- a/bsps/sparc/leon3/include/leon.h
+++ b/bsps/sparc/leon3/include/leon.h
@@ -355,8 +355,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 7462ab944c..ce628065b7 100644
--- a/bsps/sparc/leon3/start/bsp_fatal_halt.c
+++ b/bsps/sparc/leon3/start/bsp_fatal_halt.c
@@ -31,7 +31,7 @@
*/
#include <bsp.h>
-#include <leon.h>
+#include <bsp/leon3.h>
#include <rtems/score/cpuimpl.h>
void _CPU_Fatal_halt( uint32_t source, CPU_Uint32ptr error )
diff --git a/bsps/sparc/leon3/start/bspclean.c b/bsps/sparc/leon3/start/bspclean.c
index 9f062adf50..55bcf4474c 100644
--- a/bsps/sparc/leon3/start/bspclean.c
+++ b/bsps/sparc/leon3/start/bspclean.c
@@ -34,10 +34,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,