|
static bool | _CPU_Context_Get_is_executing (const Context_Control *context) |
|
static void | _CPU_Context_Set_is_executing (Context_Control *context, bool is_executing) |
|
Generally there are 2 types of context to save.
- Interrupt registers to save
- Task level registers to save
This means we have the following 3 context items:
On the SPARC, we are relatively conservative in that we save most of the CPU state in the context area. The ET (enable trap) bit and the CWP (current window pointer) fields of the PSR are considered system wide resources and are not maintained on a per-thread basis.
◆ _CPU_Context_Get_SP
#define _CPU_Context_Get_SP |
( |
|
_context | ) |
(_context)->o6_sp |
This macro provides a CPU independent way for RTEMS to access the stack pointer in a context structure. The actual name and offset is CPU architecture dependent.
Definition at line 393 of file cpu.h.
◆ CONTEXT_CONTROL_FP_SIZE
#define CONTEXT_CONTROL_FP_SIZE 0x84 |
This defines the size of the FPU context area for use in assembly.
Definition at line 557 of file cpu.h.
◆ F12_F13_OFFSET
#define F12_F13_OFFSET 0x30 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 534 of file cpu.h.
◆ F14_F15_OFFSET
#define F14_F15_OFFSET 0x38 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 536 of file cpu.h.
◆ F16_F17_OFFSET
#define F16_F17_OFFSET 0x40 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 538 of file cpu.h.
◆ F18_F19_OFFSET
#define F18_F19_OFFSET 0x48 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 540 of file cpu.h.
◆ F1O_F11_OFFSET
#define F1O_F11_OFFSET 0x28 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 532 of file cpu.h.
◆ F22_F23_OFFSET
#define F22_F23_OFFSET 0x58 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 544 of file cpu.h.
◆ F24_F25_OFFSET
#define F24_F25_OFFSET 0x60 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 546 of file cpu.h.
◆ F26_F27_OFFSET
#define F26_F27_OFFSET 0x68 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 548 of file cpu.h.
◆ F28_F29_OFFSET
#define F28_F29_OFFSET 0x70 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 550 of file cpu.h.
◆ F2_F3_OFFSET
#define F2_F3_OFFSET 0x08 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 524 of file cpu.h.
◆ F2O_F21_OFFSET
#define F2O_F21_OFFSET 0x50 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 542 of file cpu.h.
◆ F3O_F31_OFFSET
#define F3O_F31_OFFSET 0x78 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 552 of file cpu.h.
◆ F4_F5_OFFSET
#define F4_F5_OFFSET 0x10 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 526 of file cpu.h.
◆ F6_F7_OFFSET
#define F6_F7_OFFSET 0x18 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 528 of file cpu.h.
◆ F8_F9_OFFSET
#define F8_F9_OFFSET 0x20 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 530 of file cpu.h.
◆ FO_F1_OFFSET
#define FO_F1_OFFSET 0x00 |
This macro defines an offset into the FPU context for use in assembly.
Definition at line 522 of file cpu.h.
◆ FSR_OFFSET
This macro defines an offset into the FPU context for use in assembly.
Definition at line 554 of file cpu.h.
◆ G5_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 420 of file cpu.h.
◆ G7_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 422 of file cpu.h.
◆ I0_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 442 of file cpu.h.
◆ I1_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 444 of file cpu.h.
◆ I2_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 446 of file cpu.h.
◆ I3_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 448 of file cpu.h.
◆ I4_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 450 of file cpu.h.
◆ I5_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 452 of file cpu.h.
◆ I6_FP_OFFSET
#define I6_FP_OFFSET 0x40 |
This macro defines an offset into the context for use in assembly.
Definition at line 454 of file cpu.h.
◆ I7_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 456 of file cpu.h.
◆ ISR_DISPATCH_DISABLE_STACK_OFFSET
#define ISR_DISPATCH_DISABLE_STACK_OFFSET 0x54 |
This macro defines an offset into the context for use in assembly.
Definition at line 466 of file cpu.h.
◆ L0_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 425 of file cpu.h.
◆ L1_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 427 of file cpu.h.
◆ L2_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 429 of file cpu.h.
◆ L3_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 431 of file cpu.h.
◆ L4_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 433 of file cpu.h.
◆ L5_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 435 of file cpu.h.
◆ L6_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 437 of file cpu.h.
◆ L7_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 439 of file cpu.h.
◆ O6_SP_OFFSET
#define O6_SP_OFFSET 0x48 |
This macro defines an offset into the context for use in assembly.
Definition at line 459 of file cpu.h.
◆ O7_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 461 of file cpu.h.
◆ PSR_OFFSET
This macro defines an offset into the context for use in assembly.
Definition at line 464 of file cpu.h.