32 CPU_USE_LIBC_INIT_FINI_ARRAY ==
TRUE 33 || CPU_USE_LIBC_INIT_FINI_ARRAY ==
FALSE,
34 CPU_USE_LIBC_INIT_FINI_ARRAY
36 #if defined(__USE_INIT_FINI__) 37 #if CPU_USE_LIBC_INIT_FINI_ARRAY == TRUE 38 #define INIT_NAME __libc_init_array 40 #define INIT_NAME _init 43 extern void INIT_NAME(
void);
44 #define EXECUTE_GLOBAL_CONSTRUCTORS 47 #if defined(__USE__MAIN__) 48 extern void __main(
void);
49 #define INIT_NAME __main 50 #define EXECUTE_GLOBAL_CONSTRUCTORS 55 static void _Thread_Global_construction(
Thread_Control *executing )
57 #if defined(EXECUTE_GLOBAL_CONSTRUCTORS) 88 executing = _Thread_Executing;
104 #if defined(RTEMS_SMP) 117 cpu_self = _Per_CPU_Get();
136 _Thread_Global_construction( executing );
Constants and Prototypes Related to the Internal Error Handler.
#define _ISR_Local_disable(_level)
Disables interrupts on this processor.
Thread_Start_information Start
void _Thread_Do_dispatch(Per_CPU_Control *cpu_self, ISR_Level level)
Performs a thread dispatch on the current processor.
User Extension Handler API.
static __inline__ void _Thread_Restore_fp(Thread_Control *executing)
Restores the executing thread's floating point area.
static void _User_extensions_Thread_switch(Thread_Control *executing, Thread_Control *heir)
Switches the thread from the executing to the heir.
Information for the Assert Handler.
#define _ISR_Set_level(_new_level)
Set current interrupt level.
Objects_Id _Thread_Global_constructor
Object identifier of the global constructor thread.
#define RTEMS_STATIC_ASSERT(_cond, _msg)
Asserts at compile time that the specified condition is satisfied.
static void _User_extensions_Thread_begin(Thread_Control *executing)
Begins a thread.
#define TRUE
If TRUE is undefined, then TRUE is defined to 1.
void _Thread_Handler(void)
Wrapper function for all threads.
volatile uint32_t thread_dispatch_disable_level
The thread dispatch critical section nesting counter which is used to prevent context switches at ino...
void _Internal_error(Internal_errors_Core_list core_error) RTEMS_NO_RETURN
Terminates the system with an INTERNAL_ERROR_CORE fatal source and the specified core error code...
Inlined Routines from the Thread Handler.
#define FALSE
If FALSE is undefined, then FALSE is defined to 0.
void(* adaptor)(Thread_Control *executing)
Thread entry adaptor.
static void _User_extensions_Thread_exitted(Thread_Control *executing)
A user extension thread exitted.
#define _Assert(_e)
Assertion similar to assert() controlled via RTEMS_DEBUG instead of NDEBUG.
#define _Context_Initialization_at_thread_begin()