 |
RTEMS 5.2
|
Go to the documentation of this file.
20#ifndef _RTEMS_SCORE_CONTEXT_H
21#define _RTEMS_SCORE_CONTEXT_H
43#include <rtems/score/cpu.h>
51#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
52 #define CONTEXT_FP_SIZE \
53 ( ( CPU_CONTEXT_FP_SIZE + CPU_HEAP_ALIGNMENT - 1 ) \
54 & ~( CPU_HEAP_ALIGNMENT - 1 ) )
56 #define CONTEXT_FP_SIZE 0
76#define _Context_Initialize( _the_context, _stack, _size, _isr, _entry, \
78 _CPU_Context_Initialize( _the_context, _stack, _size, _isr, _entry, \
90#if defined(_CPU_Context_Initialization_at_thread_begin)
91 #define _Context_Initialization_at_thread_begin() \
92 _CPU_Context_Initialization_at_thread_begin()
94 #define _Context_Initialization_at_thread_begin()
106#define _Context_Switch( _executing, _heir ) \
107 _CPU_Context_switch( _executing, _heir )
117#define _Context_Restart_self( _the_context ) \
118 _CPU_Context_Restart_self( _the_context )
129#define _Context_Initialize_fp( _fp_area ) \
130 _CPU_Context_Initialize_fp( _fp_area )
142#define _Context_Restore_fp( _fp ) \
143 _CPU_Context_restore_fp( _fp )
153#define _Context_Save_fp( _fp ) \
154 _CPU_Context_save_fp( _fp )
156#if defined(_CPU_Context_Destroy)
157 #define _Context_Destroy( _the_thread, _the_context ) \
158 _CPU_Context_Destroy( _the_thread, _the_context )
160 #define _Context_Destroy( _the_thread, _the_context )