summaryrefslogtreecommitdiffstats
path: root/firmware/target/sh/thread-sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/sh/thread-sh.c')
-rw-r--r--firmware/target/sh/thread-sh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/sh/thread-sh.c b/firmware/target/sh/thread-sh.c
index 25e0aadf96..36c20686b0 100644
--- a/firmware/target/sh/thread-sh.c
+++ b/firmware/target/sh/thread-sh.c
@@ -21,12 +21,14 @@
*
****************************************************************************/
+#include "gcc_extensions.h"
+
/*---------------------------------------------------------------------------
* Start the thread running and terminate it if it returns
*---------------------------------------------------------------------------
*/
void start_thread(void); /* Provide C access to ASM label */
-static void __attribute__((used)) __start_thread(void)
+static void USED_ATTR __start_thread(void)
{
/* r8 = context */
asm volatile (