forked from Imagelibrary/rtems
score: Mark _CPU_Thread_Idle_body() as no-return
This helps the compiler to not generate dead code. Update #5067.
This commit is contained in:
committed by
Joel Sherrill
parent
cd748d5f6b
commit
e2ce9d426a
@@ -388,7 +388,7 @@ uint32_t _CPU_Counter_frequency( void );
|
|||||||
|
|
||||||
CPU_Counter_ticks _CPU_Counter_read( void );
|
CPU_Counter_ticks _CPU_Counter_read( void );
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
AARCH64_EXCEPTION_SP0_SYNCHRONOUS = 0,
|
AARCH64_EXCEPTION_SP0_SYNCHRONOUS = 0,
|
||||||
|
|||||||
@@ -571,7 +571,7 @@ uint32_t _CPU_Counter_frequency( void );
|
|||||||
|
|
||||||
CPU_Counter_ticks _CPU_Counter_read( void );
|
CPU_Counter_ticks _CPU_Counter_read( void );
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
#if defined(ARM_MULTILIB_ARCH_V4)
|
#if defined(ARM_MULTILIB_ARCH_V4)
|
||||||
|
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ void _CPU_ISR_install_vector(
|
|||||||
CPU_ISR_handler *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup RTEMSScoreCPUBfinCPUContext
|
* @addtogroup RTEMSScoreCPUBfinCPUContext
|
||||||
|
|||||||
@@ -559,7 +559,7 @@ void _CPU_ISR_install_vector(
|
|||||||
CPU_ISR_handler *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -631,7 +631,7 @@ void _CPU_ISR_install_vector(
|
|||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup RTEMSScoreCPUlm32Context
|
* @addtogroup RTEMSScoreCPUlm32Context
|
||||||
|
|||||||
@@ -419,7 +419,7 @@ void _CPU_Context_Initialize(
|
|||||||
|
|
||||||
/* end of Context handler macros */
|
/* end of Context handler macros */
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
#define CPU_USE_LIBC_INIT_FINI_ARRAY FALSE
|
#define CPU_USE_LIBC_INIT_FINI_ARRAY FALSE
|
||||||
|
|
||||||
|
|||||||
@@ -451,7 +451,7 @@ uint32_t _CPU_Counter_frequency( void );
|
|||||||
|
|
||||||
CPU_Counter_ticks _CPU_Counter_read( void );
|
CPU_Counter_ticks _CPU_Counter_read( void );
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
void bsp_interrupt_dispatch( uint32_t source );
|
void bsp_interrupt_dispatch( uint32_t source );
|
||||||
|
|
||||||
|
|||||||
@@ -745,7 +745,7 @@ extern void mips_break( int error );
|
|||||||
|
|
||||||
void _CPU_Initialize(void);
|
void _CPU_Initialize(void);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ void _CPU_ISR_install_vector(
|
|||||||
CPU_ISR_handler *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -322,7 +322,7 @@ void _CPU_ISR_install_vector(
|
|||||||
CPU_ISR_handler *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
void _CPU_Context_switch( Context_Control *run, Context_Control *heir );
|
void _CPU_Context_switch( Context_Control *run, Context_Control *heir );
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,4 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored )
|
|||||||
while ( true ) {
|
while ( true ) {
|
||||||
/* Do nothing */
|
/* Do nothing */
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1043,7 +1043,7 @@ void _CPU_ISR_install_vector(
|
|||||||
*
|
*
|
||||||
* XXX document implementation including references if appropriate
|
* XXX document implementation including references if appropriate
|
||||||
*/
|
*/
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Performs a context switch from the executing thread to the heir
|
* @brief Performs a context switch from the executing thread to the heir
|
||||||
|
|||||||
@@ -481,7 +481,7 @@ static inline void _CPU_ISR_install_vector(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -912,7 +912,7 @@ void _CPU_Context_Initialize(
|
|||||||
|
|
||||||
void _CPU_Initialize(void);
|
void _CPU_Initialize(void);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -195,6 +195,4 @@ void *_CPU_Thread_Idle_body( uintptr_t ignored )
|
|||||||
while ( true ) {
|
while ( true ) {
|
||||||
__asm__ volatile ( "wfi" );
|
__asm__ volatile ( "wfi" );
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ void _CPU_Initialize(
|
|||||||
void
|
void
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -523,7 +523,7 @@ void _CPU_ISR_install_vector(
|
|||||||
CPU_ISR_handler *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -963,7 +963,7 @@ void _CPU_ISR_install_vector(
|
|||||||
CPU_ISR_handler *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief SPARC specific context switch.
|
* @brief SPARC specific context switch.
|
||||||
|
|||||||
@@ -844,7 +844,7 @@ void _CPU_ISR_install_vector(
|
|||||||
CPU_ISR_handler *old_handler
|
CPU_ISR_handler *old_handler
|
||||||
);
|
);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _CPU_Context_switch
|
* _CPU_Context_switch
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ void _CPU_Context_Initialize(
|
|||||||
*/
|
*/
|
||||||
void _CPU_Initialize(void);
|
void _CPU_Initialize(void);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @addtogroup RTEMSScoreCPUV850CPUContext
|
* @addtogroup RTEMSScoreCPUV850CPUContext
|
||||||
|
|||||||
@@ -275,7 +275,7 @@ void _CPU_Context_Initialize(
|
|||||||
|
|
||||||
void _CPU_Initialize(void);
|
void _CPU_Initialize(void);
|
||||||
|
|
||||||
void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
RTEMS_NO_RETURN void *_CPU_Thread_Idle_body( uintptr_t ignored );
|
||||||
|
|
||||||
void _CPU_Context_switch(
|
void _CPU_Context_switch(
|
||||||
Context_Control *run,
|
Context_Control *run,
|
||||||
|
|||||||
Reference in New Issue
Block a user