summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-12-09 15:33:59 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-12-09 15:33:59 +0000
commit59e71ee80c65426b2f569cc4c60936053cc9caa5 (patch)
tree0b4c61bbd10fbb1fd3c00a877f4a9df6338496e9 /firmware/target/coldfire
parent9653ae364cc8b558c846d3391e3ef9eb843d2385 (diff)
downloadrockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.tar.gz
rockbox-59e71ee80c65426b2f569cc4c60936053cc9caa5.zip
Introduce USED_ATTR wrapper for __attribute__((used)).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31188 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r--firmware/target/coldfire/system-coldfire.c2
-rw-r--r--firmware/target/coldfire/thread-coldfire.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/coldfire/system-coldfire.c b/firmware/target/coldfire/system-coldfire.c
index 1fbd00825a..bc8c78b860 100644
--- a/firmware/target/coldfire/system-coldfire.c
+++ b/firmware/target/coldfire/system-coldfire.c
@@ -171,7 +171,7 @@ default_interrupt (ADC); /* A/D converter */
171#endif 171#endif
172 172
173static void system_display_exception_info(unsigned long format, 173static void system_display_exception_info(unsigned long format,
174 unsigned long pc) __attribute__ ((noreturn, used)); 174 unsigned long pc) __attribute__ ((noreturn)) USED_ATTR;
175static void system_display_exception_info(unsigned long format, 175static void system_display_exception_info(unsigned long format,
176 unsigned long pc) 176 unsigned long pc)
177{ 177{
diff --git a/firmware/target/coldfire/thread-coldfire.c b/firmware/target/coldfire/thread-coldfire.c
index c94580a4e7..d328e4af9a 100644
--- a/firmware/target/coldfire/thread-coldfire.c
+++ b/firmware/target/coldfire/thread-coldfire.c
@@ -21,12 +21,14 @@
21 * 21 *
22 ****************************************************************************/ 22 ****************************************************************************/
23 23
24#include "gcc_extensions.h"
25
24/*--------------------------------------------------------------------------- 26/*---------------------------------------------------------------------------
25 * Start the thread running and terminate it if it returns 27 * Start the thread running and terminate it if it returns
26 *--------------------------------------------------------------------------- 28 *---------------------------------------------------------------------------
27 */ 29 */
28void start_thread(void); /* Provide C access to ASM label */ 30void start_thread(void); /* Provide C access to ASM label */
29static void __attribute__((used)) __start_thread(void) 31static void USED_ATTR __start_thread(void)
30{ 32{
31 /* a0=macsr, a1=context */ 33 /* a0=macsr, a1=context */
32 asm volatile ( 34 asm volatile (