1 | /* |
---|
2 | * The license and distribution terms for this file may be |
---|
3 | * found in the file LICENSE in this distribution or at |
---|
4 | * http://www.rtems.com/license/LICENSE. |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * For now, this file is just a stub to work around |
---|
9 | * structural deficiencies of the powerpc port. |
---|
10 | */ |
---|
11 | |
---|
12 | #ifdef HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <rtems/system.h> |
---|
17 | #include <rtems/score/cpu.h> |
---|
18 | |
---|
19 | #define PPC_ASSERT_OFFSET(field, off) \ |
---|
20 | RTEMS_STATIC_ASSERT( \ |
---|
21 | offsetof(ppc_context, field) + PPC_DEFAULT_CACHE_LINE_SIZE \ |
---|
22 | == PPC_CONTEXT_OFFSET_ ## off, \ |
---|
23 | ppc_context_offset_ ## field \ |
---|
24 | ) |
---|
25 | |
---|
26 | PPC_ASSERT_OFFSET(gpr1, GPR1); |
---|
27 | PPC_ASSERT_OFFSET(msr, MSR); |
---|
28 | PPC_ASSERT_OFFSET(lr, LR); |
---|
29 | PPC_ASSERT_OFFSET(cr, CR); |
---|
30 | PPC_ASSERT_OFFSET(gpr14, GPR14); |
---|
31 | PPC_ASSERT_OFFSET(gpr15, GPR15); |
---|
32 | PPC_ASSERT_OFFSET(gpr16, GPR16); |
---|
33 | PPC_ASSERT_OFFSET(gpr17, GPR17); |
---|
34 | PPC_ASSERT_OFFSET(gpr18, GPR18); |
---|
35 | PPC_ASSERT_OFFSET(gpr19, GPR19); |
---|
36 | PPC_ASSERT_OFFSET(gpr20, GPR20); |
---|
37 | PPC_ASSERT_OFFSET(gpr21, GPR21); |
---|
38 | PPC_ASSERT_OFFSET(gpr22, GPR22); |
---|
39 | PPC_ASSERT_OFFSET(gpr23, GPR23); |
---|
40 | PPC_ASSERT_OFFSET(gpr24, GPR24); |
---|
41 | PPC_ASSERT_OFFSET(gpr25, GPR25); |
---|
42 | PPC_ASSERT_OFFSET(gpr26, GPR26); |
---|
43 | PPC_ASSERT_OFFSET(gpr27, GPR27); |
---|
44 | PPC_ASSERT_OFFSET(gpr28, GPR28); |
---|
45 | PPC_ASSERT_OFFSET(gpr29, GPR29); |
---|
46 | PPC_ASSERT_OFFSET(gpr30, GPR30); |
---|
47 | PPC_ASSERT_OFFSET(gpr31, GPR31); |
---|
48 | |
---|
49 | RTEMS_STATIC_ASSERT( |
---|
50 | sizeof(Context_Control) % PPC_DEFAULT_CACHE_LINE_SIZE == 0, |
---|
51 | ppc_context_size |
---|
52 | ); |
---|