diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-01 04:43:42 -0400 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-01 04:43:42 -0400 |
commit | dc1c1ca3dcd94c545c5e01d7c06b46824d43f4d0 (patch) | |
tree | fa088ac3eae8709dd379deda6f31d5b29197d4c9 /arch/powerpc/kernel/head_8xx.S | |
parent | d96024c688b59d4d1e60dbb0e226964eb758aa01 (diff) |
powerpc: merge idle_power4.S and trapc.s
Use idle_power4.S from ppc64 as we are not going to support
32 bit power4 in the merged tree.
Merge ppc64 traps.c into powerpc traps.c:
use ppc64 versions of exception routine names
(as they don't have StudlyCaps)
make all the versions if die() have the same
prototype
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/kernel/head_8xx.S')
-rw-r--r-- | arch/powerpc/kernel/head_8xx.S | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index cb1a3a54a026..de0978742221 100644 --- a/arch/powerpc/kernel/head_8xx.S +++ b/arch/powerpc/kernel/head_8xx.S | |||
@@ -203,7 +203,7 @@ i##n: \ | |||
203 | ret_from_except) | 203 | ret_from_except) |
204 | 204 | ||
205 | /* System reset */ | 205 | /* System reset */ |
206 | EXCEPTION(0x100, Reset, UnknownException, EXC_XFER_STD) | 206 | EXCEPTION(0x100, Reset, unknown_exception, EXC_XFER_STD) |
207 | 207 | ||
208 | /* Machine check */ | 208 | /* Machine check */ |
209 | . = 0x200 | 209 | . = 0x200 |
@@ -214,7 +214,7 @@ MachineCheck: | |||
214 | mfspr r5,SPRN_DSISR | 214 | mfspr r5,SPRN_DSISR |
215 | stw r5,_DSISR(r11) | 215 | stw r5,_DSISR(r11) |
216 | addi r3,r1,STACK_FRAME_OVERHEAD | 216 | addi r3,r1,STACK_FRAME_OVERHEAD |
217 | EXC_XFER_STD(0x200, MachineCheckException) | 217 | EXC_XFER_STD(0x200, machine_check_exception) |
218 | 218 | ||
219 | /* Data access exception. | 219 | /* Data access exception. |
220 | * This is "never generated" by the MPC8xx. We jump to it for other | 220 | * This is "never generated" by the MPC8xx. We jump to it for other |
@@ -252,20 +252,20 @@ Alignment: | |||
252 | mfspr r5,SPRN_DSISR | 252 | mfspr r5,SPRN_DSISR |
253 | stw r5,_DSISR(r11) | 253 | stw r5,_DSISR(r11) |
254 | addi r3,r1,STACK_FRAME_OVERHEAD | 254 | addi r3,r1,STACK_FRAME_OVERHEAD |
255 | EXC_XFER_EE(0x600, AlignmentException) | 255 | EXC_XFER_EE(0x600, alignment_exception) |
256 | 256 | ||
257 | /* Program check exception */ | 257 | /* Program check exception */ |
258 | EXCEPTION(0x700, ProgramCheck, ProgramCheckException, EXC_XFER_STD) | 258 | EXCEPTION(0x700, ProgramCheck, program_check_exception, EXC_XFER_STD) |
259 | 259 | ||
260 | /* No FPU on MPC8xx. This exception is not supposed to happen. | 260 | /* No FPU on MPC8xx. This exception is not supposed to happen. |
261 | */ | 261 | */ |
262 | EXCEPTION(0x800, FPUnavailable, UnknownException, EXC_XFER_STD) | 262 | EXCEPTION(0x800, FPUnavailable, unknown_exception, EXC_XFER_STD) |
263 | 263 | ||
264 | /* Decrementer */ | 264 | /* Decrementer */ |
265 | EXCEPTION(0x900, Decrementer, timer_interrupt, EXC_XFER_LITE) | 265 | EXCEPTION(0x900, Decrementer, timer_interrupt, EXC_XFER_LITE) |
266 | 266 | ||
267 | EXCEPTION(0xa00, Trap_0a, UnknownException, EXC_XFER_EE) | 267 | EXCEPTION(0xa00, Trap_0a, unknown_exception, EXC_XFER_EE) |
268 | EXCEPTION(0xb00, Trap_0b, UnknownException, EXC_XFER_EE) | 268 | EXCEPTION(0xb00, Trap_0b, unknown_exception, EXC_XFER_EE) |
269 | 269 | ||
270 | /* System call */ | 270 | /* System call */ |
271 | . = 0xc00 | 271 | . = 0xc00 |
@@ -274,9 +274,9 @@ SystemCall: | |||
274 | EXC_XFER_EE_LITE(0xc00, DoSyscall) | 274 | EXC_XFER_EE_LITE(0xc00, DoSyscall) |
275 | 275 | ||
276 | /* Single step - not used on 601 */ | 276 | /* Single step - not used on 601 */ |
277 | EXCEPTION(0xd00, SingleStep, SingleStepException, EXC_XFER_STD) | 277 | EXCEPTION(0xd00, SingleStep, single_step_exception, EXC_XFER_STD) |
278 | EXCEPTION(0xe00, Trap_0e, UnknownException, EXC_XFER_EE) | 278 | EXCEPTION(0xe00, Trap_0e, unknown_exception, EXC_XFER_EE) |
279 | EXCEPTION(0xf00, Trap_0f, UnknownException, EXC_XFER_EE) | 279 | EXCEPTION(0xf00, Trap_0f, unknown_exception, EXC_XFER_EE) |
280 | 280 | ||
281 | /* On the MPC8xx, this is a software emulation interrupt. It occurs | 281 | /* On the MPC8xx, this is a software emulation interrupt. It occurs |
282 | * for all unimplemented and illegal instructions. | 282 | * for all unimplemented and illegal instructions. |
@@ -540,22 +540,22 @@ DataTLBError: | |||
540 | #endif | 540 | #endif |
541 | b DataAccess | 541 | b DataAccess |
542 | 542 | ||
543 | EXCEPTION(0x1500, Trap_15, UnknownException, EXC_XFER_EE) | 543 | EXCEPTION(0x1500, Trap_15, unknown_exception, EXC_XFER_EE) |
544 | EXCEPTION(0x1600, Trap_16, UnknownException, EXC_XFER_EE) | 544 | EXCEPTION(0x1600, Trap_16, unknown_exception, EXC_XFER_EE) |
545 | EXCEPTION(0x1700, Trap_17, UnknownException, EXC_XFER_EE) | 545 | EXCEPTION(0x1700, Trap_17, unknown_exception, EXC_XFER_EE) |
546 | EXCEPTION(0x1800, Trap_18, UnknownException, EXC_XFER_EE) | 546 | EXCEPTION(0x1800, Trap_18, unknown_exception, EXC_XFER_EE) |
547 | EXCEPTION(0x1900, Trap_19, UnknownException, EXC_XFER_EE) | 547 | EXCEPTION(0x1900, Trap_19, unknown_exception, EXC_XFER_EE) |
548 | EXCEPTION(0x1a00, Trap_1a, UnknownException, EXC_XFER_EE) | 548 | EXCEPTION(0x1a00, Trap_1a, unknown_exception, EXC_XFER_EE) |
549 | EXCEPTION(0x1b00, Trap_1b, UnknownException, EXC_XFER_EE) | 549 | EXCEPTION(0x1b00, Trap_1b, unknown_exception, EXC_XFER_EE) |
550 | 550 | ||
551 | /* On the MPC8xx, these next four traps are used for development | 551 | /* On the MPC8xx, these next four traps are used for development |
552 | * support of breakpoints and such. Someday I will get around to | 552 | * support of breakpoints and such. Someday I will get around to |
553 | * using them. | 553 | * using them. |
554 | */ | 554 | */ |
555 | EXCEPTION(0x1c00, Trap_1c, UnknownException, EXC_XFER_EE) | 555 | EXCEPTION(0x1c00, Trap_1c, unknown_exception, EXC_XFER_EE) |
556 | EXCEPTION(0x1d00, Trap_1d, UnknownException, EXC_XFER_EE) | 556 | EXCEPTION(0x1d00, Trap_1d, unknown_exception, EXC_XFER_EE) |
557 | EXCEPTION(0x1e00, Trap_1e, UnknownException, EXC_XFER_EE) | 557 | EXCEPTION(0x1e00, Trap_1e, unknown_exception, EXC_XFER_EE) |
558 | EXCEPTION(0x1f00, Trap_1f, UnknownException, EXC_XFER_EE) | 558 | EXCEPTION(0x1f00, Trap_1f, unknown_exception, EXC_XFER_EE) |
559 | 559 | ||
560 | . = 0x2000 | 560 | . = 0x2000 |
561 | 561 | ||