mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Convert remaining __attribute__((noreturn)) to NORETURN_ATTR.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31189 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
59e71ee80c
commit
8906b3e659
3 changed files with 4 additions and 4 deletions
|
|
@ -211,7 +211,7 @@ static void INIT_ATTR core_thread_init(unsigned int core)
|
||||||
* to use a stack from an unloaded module until another thread runs on it.
|
* to use a stack from an unloaded module until another thread runs on it.
|
||||||
*---------------------------------------------------------------------------
|
*---------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
static inline void __attribute__((noreturn,always_inline))
|
static inline void NORETURN_ATTR __attribute__((always_inline))
|
||||||
thread_final_exit(struct thread_entry *current)
|
thread_final_exit(struct thread_entry *current)
|
||||||
{
|
{
|
||||||
asm volatile (
|
asm volatile (
|
||||||
|
|
|
||||||
|
|
@ -171,7 +171,7 @@ default_interrupt (ADC); /* A/D converter */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void system_display_exception_info(unsigned long format,
|
static void system_display_exception_info(unsigned long format,
|
||||||
unsigned long pc) __attribute__ ((noreturn)) USED_ATTR;
|
unsigned long pc) NORETURN_ATTR USED_ATTR;
|
||||||
static void system_display_exception_info(unsigned long format,
|
static void system_display_exception_info(unsigned long format,
|
||||||
unsigned long pc)
|
unsigned long pc)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -165,10 +165,10 @@ static inline void load_context(const void* addr)
|
||||||
|
|
||||||
#if NUM_CORES > 1
|
#if NUM_CORES > 1
|
||||||
static void thread_final_exit_do(struct thread_entry *current)
|
static void thread_final_exit_do(struct thread_entry *current)
|
||||||
__attribute__((noinline, noreturn)) USED_ATTR;
|
__attribute__((noinline)) NORETURN_ATTR USED_ATTR;
|
||||||
#else
|
#else
|
||||||
static inline void thread_final_exit(struct thread_entry *current)
|
static inline void thread_final_exit(struct thread_entry *current)
|
||||||
__attribute__((always_inline, noreturn));
|
__attribute__((always_inline)) NORETURN_ATTR;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void switch_thread(void)
|
void switch_thread(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue