summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/thread-arm.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/thread-arm.c')
-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 @@
****************************************************************************/
#include <system.h>
+#include "gcc_extensions.h"
+
/*---------------------------------------------------------------------------
* Start the thread running and terminate it if it returns
*---------------------------------------------------------------------------
*/
-static void __attribute__((naked,used)) start_thread(void)
+static void __attribute__((naked)) USED_ATTR start_thread(void)
{
/* r0 = context */
asm volatile (