RTEMS: cpukit/score/cpu/powerpc/cpu.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros | Functions
cpu.c File Reference

PowerPC Dependent Source. More...

`#include <rtems/score/cpuimpl.h>`

## Macros
#define | PPC_ASSERT_OFFSET(field, off)
#define | PPC_EXC_ASSERT_OFFSET(field, off)
#define | PPC_EXC_ASSERT_CANONIC_OFFSET(field) PPC_EXC_ASSERT_OFFSET(field, field ## _OFFSET)
#define | PPC_EXC_MIN_ASSERT_OFFSET(field, off)
#define | PPC_EXC_MIN_ASSERT_CANONIC_OFFSET(field) PPC_EXC_MIN_ASSERT_OFFSET(field, field ## _OFFSET)

## Functions
| PPC_ASSERT_OFFSET (gpr1, GPR1)
| PPC_ASSERT_OFFSET (msr, MSR)
| PPC_ASSERT_OFFSET (lr, LR)
| PPC_ASSERT_OFFSET (cr, CR)
| PPC_ASSERT_OFFSET (gpr14, GPR14)
| PPC_ASSERT_OFFSET (gpr15, GPR15)
| PPC_ASSERT_OFFSET (gpr16, GPR16)
| PPC_ASSERT_OFFSET (gpr17, GPR17)
| PPC_ASSERT_OFFSET (gpr18, GPR18)
| PPC_ASSERT_OFFSET (gpr19, GPR19)
| PPC_ASSERT_OFFSET (gpr20, GPR20)
| PPC_ASSERT_OFFSET (gpr21, GPR21)
| PPC_ASSERT_OFFSET (gpr22, GPR22)
| PPC_ASSERT_OFFSET (gpr23, GPR23)
| PPC_ASSERT_OFFSET (gpr24, GPR24)
| PPC_ASSERT_OFFSET (gpr25, GPR25)
| PPC_ASSERT_OFFSET (gpr26, GPR26)
| PPC_ASSERT_OFFSET (gpr27, GPR27)
| PPC_ASSERT_OFFSET (gpr28, GPR28)
| PPC_ASSERT_OFFSET (gpr29, GPR29)
| PPC_ASSERT_OFFSET (gpr30, GPR30)
| PPC_ASSERT_OFFSET (gpr31, GPR31)
| PPC_ASSERT_OFFSET (tp, TP)
| PPC_ASSERT_OFFSET (isr_dispatch_disable, ISR_DISPATCH_DISABLE)
| RTEMS_STATIC_ASSERT (sizeof(Context_Control) % PPC_DEFAULT_CACHE_LINE_SIZE==0, ppc_context_size)
| PPC_EXC_ASSERT_OFFSET (EXC_SRR0, SRR0_FRAME_OFFSET)
| PPC_EXC_ASSERT_OFFSET (EXC_SRR1, SRR1_FRAME_OFFSET)
| PPC_EXC_ASSERT_OFFSET (_EXC_number, EXCEPTION_NUMBER_OFFSET)
| PPC_EXC_ASSERT_CANONIC_OFFSET (EXC_CR)
| PPC_EXC_ASSERT_CANONIC_OFFSET (EXC_CTR)
| PPC_EXC_ASSERT_CANONIC_OFFSET (EXC_XER)
| PPC_EXC_ASSERT_CANONIC_OFFSET (EXC_LR)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR0)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR1)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR2)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR3)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR4)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR5)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR6)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR7)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR8)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR9)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR10)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR11)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR12)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR13)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR14)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR15)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR16)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR17)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR18)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR19)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR20)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR21)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR22)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR23)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR24)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR25)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR26)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR27)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR28)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR29)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR30)
| PPC_EXC_ASSERT_CANONIC_OFFSET (GPR31)
| PPC_EXC_MIN_ASSERT_OFFSET (EXC_SRR0, SRR0_FRAME_OFFSET)
| PPC_EXC_MIN_ASSERT_OFFSET (EXC_SRR1, SRR1_FRAME_OFFSET)
| PPC_EXC_MIN_ASSERT_OFFSET (EXC_INTERRUPT_ENTRY_INSTANT, PPC_EXC_INTERRUPT_ENTRY_INSTANT_OFFSET)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (EXC_CR)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (EXC_CTR)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (EXC_XER)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (EXC_LR)
| PPC_EXC_MIN_ASSERT_OFFSET (EXC_INTERRUPT_FRAME, PPC_EXC_INTERRUPT_FRAME_OFFSET)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR0)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR1)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR2)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR3)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR4)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR5)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR6)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR7)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR8)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR9)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR10)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR11)
| PPC_EXC_MIN_ASSERT_CANONIC_OFFSET (GPR12)
| RTEMS_STATIC_ASSERT (CPU_INTERRUPT_FRAME_SIZE % CPU_STACK_ALIGNMENT==0, CPU_INTERRUPT_FRAME_SIZE)
| RTEMS_STATIC_ASSERT (PPC_EXC_FRAME_SIZE % CPU_STACK_ALIGNMENT==0, PPC_EXC_FRAME_SIZE)
| RTEMS_STATIC_ASSERT (sizeof(CPU_Exception_frame)+FRAME_LINK_SPACE<=PPC_EXC_FRAME_SIZE, CPU_Exception_frame)

## Detailed Description

PowerPC Dependent Source.

## Macro Definition Documentation

## ◆ PPC_ASSERT_OFFSET

#define PPC_ASSERT_OFFSET | ( |  | field,
|  |  | off
| ) |  |

Value:
RTEMS_STATIC_ASSERT( \
offsetof(ppc_context, field) + PPC_DEFAULT_CACHE_LINE_SIZE \
== PPC_CONTEXT_OFFSET_ ## off, \
ppc_context_offset_ ## field \
)
ppc_context
Definition: cpu.h:204

## ◆ PPC_EXC_ASSERT_OFFSET

#define PPC_EXC_ASSERT_OFFSET | ( |  | field,
|  |  | off
| ) |  |

Value:
RTEMS_STATIC_ASSERT( \
offsetof(CPU_Exception_frame, field) + FRAME_LINK_SPACE == off, \
CPU_Exception_frame_offset_ ## field \
)
CPU_Exception_frame
The set of registers that specifies the complete processor state.
Definition: cpu.h:629

## ◆ PPC_EXC_MIN_ASSERT_OFFSET

#define PPC_EXC_MIN_ASSERT_OFFSET | ( |  | field,
|  |  | off
| ) |  |

Value:
RTEMS_STATIC_ASSERT( \
offsetof(CPU_Interrupt_frame, field) == off, \
CPU_Interrupt_frame_offset_ ## field \
)
CPU_Interrupt_frame
Interrupt stack frame (ISF).
Definition: cpu.h:191