Commit 02032e8f14751a1a751b09240a4f1cf9f8a2077f
1 parent
83b4cfa3d6
Exists in
master
and in
55 other branches
[ppc] Fix build breakage for all non-4xx PowerPC variants.
- adapt to the more generic EXCEPTION_PROLOG and CRIT_EXCEPTION macros - minor 4xx cleanup
Showing 23 changed files with 34 additions and 26 deletions Side-by-side Diff
- cpu/74xx_7xx/start.S
- cpu/mpc5xx/start.S
- cpu/mpc5xxx/start.S
- cpu/mpc8220/start.S
- cpu/mpc824x/start.S
- cpu/mpc8260/start.S
- cpu/mpc83xx/start.S
- cpu/mpc85xx/start.S
- cpu/mpc86xx/start.S
- cpu/mpc8xx/start.S
- cpu/ppc4xx/start.S
- include/74xx_7xx.h
- include/mpc5xx.h
- include/mpc5xxx.h
- include/mpc8220.h
- include/mpc824x.h
- include/mpc8260.h
- include/mpc83xx.h
- include/mpc85xx.h
- include/mpc86xx.h
- include/mpc8xx.h
- include/ppc4xx.h
- include/ppc_asm.tmpl
cpu/74xx_7xx/start.S
... | ... | @@ -125,7 +125,7 @@ |
125 | 125 | /* Alignment exception. */ |
126 | 126 | . = 0x600 |
127 | 127 | Alignment: |
128 | - EXCEPTION_PROLOG | |
128 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
129 | 129 | mfspr r4,DAR |
130 | 130 | stw r4,_DAR(r21) |
131 | 131 | mfspr r5,DSISR |
... | ... | @@ -143,7 +143,7 @@ |
143 | 143 | /* Program check exception */ |
144 | 144 | . = 0x700 |
145 | 145 | ProgramCheck: |
146 | - EXCEPTION_PROLOG | |
146 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
147 | 147 | addi r3,r1,STACK_FRAME_OVERHEAD |
148 | 148 | li r20,MSR_KERNEL |
149 | 149 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc5xx/start.S
... | ... | @@ -210,7 +210,7 @@ |
210 | 210 | /* Alignment exception. */ |
211 | 211 | . = 0x600 |
212 | 212 | Alignment: |
213 | - EXCEPTION_PROLOG | |
213 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
214 | 214 | mfspr r4,DAR |
215 | 215 | stw r4,_DAR(r21) |
216 | 216 | mfspr r5,DSISR |
... | ... | @@ -228,7 +228,7 @@ |
228 | 228 | /* Program check exception */ |
229 | 229 | . = 0x700 |
230 | 230 | ProgramCheck: |
231 | - EXCEPTION_PROLOG | |
231 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
232 | 232 | addi r3,r1,STACK_FRAME_OVERHEAD |
233 | 233 | li r20,MSR_KERNEL |
234 | 234 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc5xxx/start.S
... | ... | @@ -208,7 +208,7 @@ |
208 | 208 | /* Alignment exception. */ |
209 | 209 | . = 0x600 |
210 | 210 | Alignment: |
211 | - EXCEPTION_PROLOG | |
211 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
212 | 212 | mfspr r4,DAR |
213 | 213 | stw r4,_DAR(r21) |
214 | 214 | mfspr r5,DSISR |
... | ... | @@ -227,7 +227,7 @@ |
227 | 227 | /* Program check exception */ |
228 | 228 | . = 0x700 |
229 | 229 | ProgramCheck: |
230 | - EXCEPTION_PROLOG | |
230 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
231 | 231 | addi r3,r1,STACK_FRAME_OVERHEAD |
232 | 232 | li r20,MSR_KERNEL |
233 | 233 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc8220/start.S
... | ... | @@ -169,7 +169,7 @@ |
169 | 169 | /* Alignment exception. */ |
170 | 170 | . = 0x600 |
171 | 171 | Alignment: |
172 | - EXCEPTION_PROLOG | |
172 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
173 | 173 | mfspr r4,DAR |
174 | 174 | stw r4,_DAR(r21) |
175 | 175 | mfspr r5,DSISR |
... | ... | @@ -188,7 +188,7 @@ |
188 | 188 | /* Program check exception */ |
189 | 189 | . = 0x700 |
190 | 190 | ProgramCheck: |
191 | - EXCEPTION_PROLOG | |
191 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
192 | 192 | addi r3,r1,STACK_FRAME_OVERHEAD |
193 | 193 | li r20,MSR_KERNEL |
194 | 194 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc824x/start.S
... | ... | @@ -220,7 +220,7 @@ |
220 | 220 | /* Alignment exception. */ |
221 | 221 | . = EXC_OFF_ALIGN |
222 | 222 | Alignment: |
223 | - EXCEPTION_PROLOG | |
223 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
224 | 224 | mfspr r4,DAR |
225 | 225 | stw r4,_DAR(r21) |
226 | 226 | mfspr r5,DSISR |
... | ... | @@ -238,7 +238,7 @@ |
238 | 238 | /* Program check exception */ |
239 | 239 | . = EXC_OFF_PROGRAM |
240 | 240 | ProgramCheck: |
241 | - EXCEPTION_PROLOG | |
241 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
242 | 242 | addi r3,r1,STACK_FRAME_OVERHEAD |
243 | 243 | li r20,MSR_KERNEL |
244 | 244 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc8260/start.S
... | ... | @@ -279,7 +279,7 @@ |
279 | 279 | /* Alignment exception. */ |
280 | 280 | . = 0x600 |
281 | 281 | Alignment: |
282 | - EXCEPTION_PROLOG | |
282 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
283 | 283 | mfspr r4,DAR |
284 | 284 | stw r4,_DAR(r21) |
285 | 285 | mfspr r5,DSISR |
... | ... | @@ -298,7 +298,7 @@ |
298 | 298 | /* Program check exception */ |
299 | 299 | . = 0x700 |
300 | 300 | ProgramCheck: |
301 | - EXCEPTION_PROLOG | |
301 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
302 | 302 | addi r3,r1,STACK_FRAME_OVERHEAD |
303 | 303 | li r20,MSR_KERNEL |
304 | 304 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc83xx/start.S
... | ... | @@ -263,7 +263,7 @@ |
263 | 263 | /* Alignment exception. */ |
264 | 264 | . = 0x600 |
265 | 265 | Alignment: |
266 | - EXCEPTION_PROLOG | |
266 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
267 | 267 | mfspr r4,DAR |
268 | 268 | stw r4,_DAR(r21) |
269 | 269 | mfspr r5,DSISR |
... | ... | @@ -282,7 +282,7 @@ |
282 | 282 | /* Program check exception */ |
283 | 283 | . = 0x700 |
284 | 284 | ProgramCheck: |
285 | - EXCEPTION_PROLOG | |
285 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
286 | 286 | addi r3,r1,STACK_FRAME_OVERHEAD |
287 | 287 | li r20,MSR_KERNEL |
288 | 288 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc85xx/start.S
... | ... | @@ -457,7 +457,7 @@ |
457 | 457 | /* Alignment exception. */ |
458 | 458 | . = 0x0600 |
459 | 459 | Alignment: |
460 | - EXCEPTION_PROLOG | |
460 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
461 | 461 | mfspr r4,DAR |
462 | 462 | stw r4,_DAR(r21) |
463 | 463 | mfspr r5,DSISR |
... | ... | @@ -475,7 +475,7 @@ |
475 | 475 | /* Program check exception */ |
476 | 476 | . = 0x0700 |
477 | 477 | ProgramCheck: |
478 | - EXCEPTION_PROLOG | |
478 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
479 | 479 | addi r3,r1,STACK_FRAME_OVERHEAD |
480 | 480 | li r20,MSR_KERNEL |
481 | 481 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc86xx/start.S
... | ... | @@ -116,7 +116,7 @@ |
116 | 116 | /* Alignment exception. */ |
117 | 117 | . = 0x600 |
118 | 118 | Alignment: |
119 | - EXCEPTION_PROLOG | |
119 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
120 | 120 | mfspr r4,DAR |
121 | 121 | stw r4,_DAR(r21) |
122 | 122 | mfspr r5,DSISR |
... | ... | @@ -134,7 +134,7 @@ |
134 | 134 | /* Program check exception */ |
135 | 135 | . = 0x700 |
136 | 136 | ProgramCheck: |
137 | - EXCEPTION_PROLOG | |
137 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
138 | 138 | addi r3,r1,STACK_FRAME_OVERHEAD |
139 | 139 | li r20,MSR_KERNEL |
140 | 140 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/mpc8xx/start.S
... | ... | @@ -224,7 +224,7 @@ |
224 | 224 | /* Alignment exception. */ |
225 | 225 | . = 0x600 |
226 | 226 | Alignment: |
227 | - EXCEPTION_PROLOG | |
227 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
228 | 228 | mfspr r4,DAR |
229 | 229 | stw r4,_DAR(r21) |
230 | 230 | mfspr r5,DSISR |
... | ... | @@ -242,7 +242,7 @@ |
242 | 242 | /* Program check exception */ |
243 | 243 | . = 0x700 |
244 | 244 | ProgramCheck: |
245 | - EXCEPTION_PROLOG | |
245 | + EXCEPTION_PROLOG(SRR0, SRR1) | |
246 | 246 | addi r3,r1,STACK_FRAME_OVERHEAD |
247 | 247 | li r20,MSR_KERNEL |
248 | 248 | rlwimi r20,r23,0,16,16 /* copy EE bit from saved MSR */ |
cpu/ppc4xx/start.S
include/74xx_7xx.h
include/mpc5xx.h
... | ... | @@ -36,6 +36,7 @@ |
36 | 36 | * Exception offsets (PowerPC standard) |
37 | 37 | */ |
38 | 38 | #define EXC_OFF_SYS_RESET 0x0100 /* System reset */ |
39 | +#define _START_OFFSET EXC_OFF_SYS_RESET | |
39 | 40 | |
40 | 41 | /*----------------------------------------------------------------------- |
41 | 42 | * ISB bit in IMMR to set internal memory map |
include/mpc5xxx.h
include/mpc8220.h
include/mpc824x.h
... | ... | @@ -142,6 +142,8 @@ |
142 | 142 | #define EXC_OFF_JMDDI 0x1600 /* Java Mode denorm detect Interr -- WTF??*/ |
143 | 143 | #define EXC_OFF_RMTE 0x2000 /* Run Mode or Trace Exception */ |
144 | 144 | |
145 | +#define _START_OFFSET EXC_OFF_SYS_RESET | |
146 | + | |
145 | 147 | #define MAP_A_CONFIG_ADDR_HIGH 0x8000 /* Upper half of CONFIG_ADDR for Map A */ |
146 | 148 | #define MAP_A_CONFIG_ADDR_LOW 0x0CF8 /* Lower half of CONFIG_ADDR for Map A */ |
147 | 149 | #define MAP_A_CONFIG_DATA_HIGH 0x8000 /* Upper half of CONFIG_DAT for Map A */ |
include/mpc8260.h
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | * Exception offsets (PowerPC standard) |
54 | 54 | */ |
55 | 55 | #define EXC_OFF_SYS_RESET 0x0100 /* System reset */ |
56 | - | |
56 | +#define _START_OFFSET EXC_OFF_SYS_RESET | |
57 | 57 | |
58 | 58 | /*----------------------------------------------------------------------- |
59 | 59 | * BCR - Bus Configuration Register 4-25 |
include/mpc83xx.h
include/mpc85xx.h
include/mpc86xx.h
include/mpc8xx.h
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 | * Exception offsets (PowerPC standard) |
36 | 36 | */ |
37 | 37 | #define EXC_OFF_SYS_RESET 0x0100 /* System reset */ |
38 | - | |
38 | +#define _START_OFFSET EXC_OFF_SYS_RESET | |
39 | 39 | |
40 | 40 | /*----------------------------------------------------------------------- |
41 | 41 | * SYPCR - System Protection Control Register 11-9 |
include/ppc4xx.h
include/ppc_asm.tmpl