RTEMS
5.0.0
|
Example CPU Architecture Support. More...
Modules | |
CPUEndian | |
CPUEndian. | |
Example Assembler Support | |
Processor Dependent Bitfield Manipulation | |
Processor Dependent Context Management | |
Destroys the context of the thread. | |
Processor Dependent Interrupt Management | |
Data Structures | |
struct | CPU_Per_CPU_control |
The CPU specific per-CPU control. More... | |
Macros | |
#define | CPU_PER_CPU_CONTROL_SIZE 0 |
The size of the CPU specific per-CPU control. More... | |
#define | _CPU_Get_current_per_CPU_control() ( _CPU_Per_CPU_current ) |
Optional method to obtain the per-CPU control of the current processor. More... | |
#define | _CPU_Get_thread_executing() ( _CPU_Per_CPU_current->executing ) |
Optional method to get the executing thread. More... | |
Functions | |
register struct Per_CPU_Control *_CPU_Per_CPU_current | asm ("rX") |
Special register pointing to the per-CPU control of the current processor. More... | |
void | _CPU_Context_volatile_clobber (uintptr_t pattern) |
void | _CPU_Context_validate (uintptr_t pattern) |
RTEMS_INLINE_ROUTINE void | _CPU_Instruction_illegal (void) |
Emits an illegal instruction. More... | |
RTEMS_INLINE_ROUTINE void | _CPU_Instruction_no_operation (void) |
Emits a no operation instruction (nop). More... | |
Example CPU Architecture Support.
#define _CPU_Get_current_per_CPU_control | ( | ) | ( _CPU_Per_CPU_current ) |
Optional method to obtain the per-CPU control of the current processor.
This is optional. Not every CPU port needs this. It is only an optional optimization variant. In case this macro is undefined, the default implementation using the current processor index will be used.
#define _CPU_Get_thread_executing | ( | ) | ( _CPU_Per_CPU_current->executing ) |
Optional method to get the executing thread.
This is optional. Not every CPU port needs this. It is only an optional optimization variant. In case this macro is undefined, the default implementation uses the per-CPU information and the current processor index to get the executing thread.
#define CPU_PER_CPU_CONTROL_SIZE 0 |
The size of the CPU specific per-CPU control.
This define must be visible to assember files since it is used to derive structure offsets.
RTEMS_INLINE_ROUTINE void _CPU_Instruction_illegal | ( | void | ) |
Emits an illegal instruction.
This function is used only in test sptests/spfatal26.
RTEMS_INLINE_ROUTINE void _CPU_Instruction_no_operation | ( | void | ) |
Emits a no operation instruction (nop).
This function is used only in test sptests/spcache01.
register struct Per_CPU_Control* _CPU_Per_CPU_current asm | ( | "rX" | ) |
Special register pointing to the per-CPU control of the current processor.
This is optional. Not every CPU port needs this. It is only an optional optimization variant.