diff --git a/bsps/sparc/leon3/include/bsp/leon3.h b/bsps/sparc/leon3/include/bsp/leon3.h index f9717c364c..1394dd1c1c 100644 --- a/bsps/sparc/leon3/include/bsp/leon3.h +++ b/bsps/sparc/leon3/include/bsp/leon3.h @@ -56,6 +56,12 @@ extern "C" { * @{ */ +/** + * @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 fba64addfe..54d566799a 100644 --- a/bsps/sparc/leon3/include/leon.h +++ b/bsps/sparc/leon3/include/leon.h @@ -361,8 +361,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 -#include +#include #include 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 7414a61b83..acb2d6093c 100644 --- a/bsps/sparc/leon3/start/bspclean.c +++ b/bsps/sparc/leon3/start/bspclean.c @@ -34,10 +34,9 @@ #include #include +#include #include -#include - void bsp_fatal_extension( rtems_fatal_source source, bool always_set_to_false,