diff options
Diffstat (limited to 'firmware/target/hosted')
-rw-r--r-- | firmware/target/hosted/thread-arm.c | 4 |
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 | */ |
30 | static void __attribute__((naked,used)) start_thread(void) | 32 | static void __attribute__((naked)) USED_ATTR start_thread(void) |
31 | { | 33 | { |
32 | /* r0 = context */ | 34 | /* r0 = context */ |
33 | asm volatile ( | 35 | asm volatile ( |