[PATCH 1/3] bsp/leon3: Add leon3_power_down_loop()

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Feb 19 15:45:03 UTC 2014


---
 c/src/lib/libbsp/sparc/leon3/include/leon.h    |    2 ++
 c/src/lib/libbsp/sparc/leon3/startup/bspidle.S |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/c/src/lib/libbsp/sparc/leon3/include/leon.h b/c/src/lib/libbsp/sparc/leon3/include/leon.h
index ebd0f90..1141bac 100644
--- a/c/src/lib/libbsp/sparc/leon3/include/leon.h
+++ b/c/src/lib/libbsp/sparc/leon3/include/leon.h
@@ -332,6 +332,8 @@ void leon3_ext_irq_init(void);
 
 void bsp_debug_uart_init(void);
 
+void leon3_power_down_loop(void) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
+
 #endif /* !ASM */
 
 #ifdef __cplusplus
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S b/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S
index 99c9d1f..ada0bec 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S
+++ b/c/src/lib/libbsp/sparc/leon3/startup/bspidle.S
@@ -19,7 +19,9 @@
 
         .align 4
         PUBLIC(bsp_idle_thread)
+        PUBLIC(leon3_power_down_loop)
 SYM(bsp_idle_thread):
+SYM(leon3_power_down_loop):
 pwdloop:  mov   %g0, %asr19
           ba    pwdloop
           nop
-- 
1.7.7




More information about the devel mailing list