summaryrefslogtreecommitdiff
path: root/firmware/target/hosted
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/hosted
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/hosted')
-rw-r--r--firmware/target/hosted/thread-arm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/hosted/thread-arm.c b/firmware/target/hosted/thread-arm.c
index d2fa7d1e5d..f8e58c031c 100644
--- a/firmware/target/hosted/thread-arm.c
+++ b/firmware/target/hosted/thread-arm.c
@@ -23,11 +23,13 @@
23 ****************************************************************************/ 23 ****************************************************************************/
24 24
25#include <system.h> 25#include <system.h>
26#include "gcc_extensions.h"
27
26/*--------------------------------------------------------------------------- 28/*---------------------------------------------------------------------------
27 * Start the thread running and terminate it if it returns 29 * Start the thread running and terminate it if it returns
28 *--------------------------------------------------------------------------- 30 *---------------------------------------------------------------------------
29 */ 31 */
30static void __attribute__((naked,used)) start_thread(void) 32static void __attribute__((naked)) USED_ATTR start_thread(void)
31{ 33{
32 /* r0 = context */ 34 /* r0 = context */
33 asm volatile ( 35 asm volatile (