summaryrefslogtreecommitdiff
path: root/firmware/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/thread.c')
-rw-r--r--firmware/thread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/thread.c b/firmware/thread.c
index a1886cbc07..7b91f8fcbd 100644
--- a/firmware/thread.c
+++ b/firmware/thread.c
@@ -30,6 +30,8 @@
30#ifdef RB_PROFILE 30#ifdef RB_PROFILE
31#include <profile.h> 31#include <profile.h>
32#endif 32#endif
33#include "gcc_extensions.h"
34
33/**************************************************************************** 35/****************************************************************************
34 * ATTENTION!! * 36 * ATTENTION!! *
35 * See notes below on implementing processor-specific portions! * 37 * See notes below on implementing processor-specific portions! *
@@ -163,7 +165,7 @@ static inline void load_context(const void* addr)
163 165
164#if NUM_CORES > 1 166#if NUM_CORES > 1
165static void thread_final_exit_do(struct thread_entry *current) 167static void thread_final_exit_do(struct thread_entry *current)
166 __attribute__((noinline, noreturn, used)); 168 __attribute__((noinline, noreturn)) USED_ATTR;
167#else 169#else
168static inline void thread_final_exit(struct thread_entry *current) 170static inline void thread_final_exit(struct thread_entry *current)
169 __attribute__((always_inline, noreturn)); 171 __attribute__((always_inline, noreturn));