diff options
author | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 15:33:59 +0000 |
---|---|---|
committer | Boris Gjenero <dreamlayers@rockbox.org> | 2011-12-09 15:33:59 +0000 |
commit | 59e71ee80c65426b2f569cc4c60936053cc9caa5 (patch) | |
tree | 0b4c61bbd10fbb1fd3c00a877f4a9df6338496e9 /firmware/target/mips | |
parent | 9653ae364cc8b558c846d3391e3ef9eb843d2385 (diff) | |
download | rockbox-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/mips')
-rw-r--r-- | firmware/target/mips/thread-mips32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/mips/thread-mips32.c b/firmware/target/mips/thread-mips32.c index e2fccb8022..2b34d3ce3d 100644 --- a/firmware/target/mips/thread-mips32.c +++ b/firmware/target/mips/thread-mips32.c | |||
@@ -21,13 +21,15 @@ | |||
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 | */ |
28 | 30 | ||
29 | void start_thread(void); /* Provide C access to ASM label */ | 31 | void start_thread(void); /* Provide C access to ASM label */ |
30 | static void __attribute__((used)) _start_thread(void) | 32 | static void USED_ATTR _start_thread(void) |
31 | { | 33 | { |
32 | /* t1 = context */ | 34 | /* t1 = context */ |
33 | asm volatile ( | 35 | asm volatile ( |