aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorLEROY Christophe <christophe.leroy@c-s.fr>2014-09-19 04:36:07 -0400
committerScott Wood <scottwood@freescale.com>2014-11-07 19:10:38 -0500
commit749137a2516aea627cbdd49140e60bb60d80f18e (patch)
tree3c91394b735a7856252b5c3bd38aff3c416585cd /arch/powerpc/kernel
parent7439b37e7579543226cb30eeefdf989bed391997 (diff)
powerpc/8xx: DataAccess exception not generated by MPC8xx
DataAccess exception is never generated by MPC8xx so do the job directly where it is used to avoid an unnecessary branching. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/head_8xx.S21
1 files changed, 10 insertions, 11 deletions
diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S
index d30f703790f4..464be24fd3eb 100644
--- a/arch/powerpc/kernel/head_8xx.S
+++ b/arch/powerpc/kernel/head_8xx.S
@@ -219,19 +219,10 @@ MachineCheck:
219 EXC_XFER_STD(0x200, machine_check_exception) 219 EXC_XFER_STD(0x200, machine_check_exception)
220 220
221/* Data access exception. 221/* Data access exception.
222 * This is "never generated" by the MPC8xx. We jump to it for other 222 * This is "never generated" by the MPC8xx.
223 * translation errors.
224 */ 223 */
225 . = 0x300 224 . = 0x300
226DataAccess: 225DataAccess:
227 EXCEPTION_PROLOG
228 mfspr r10,SPRN_DSISR
229 stw r10,_DSISR(r11)
230 mr r5,r10
231 mfspr r4,SPRN_DAR
232 li r10,0x00f0
233 mtspr SPRN_DAR,r10 /* Tag DAR, to be used in DTLB Error */
234 EXC_XFER_LITE(0x300, handle_page_fault)
235 226
236/* Instruction access exception. 227/* Instruction access exception.
237 * This is "never generated" by the MPC8xx. 228 * This is "never generated" by the MPC8xx.
@@ -491,7 +482,15 @@ DataTLBError:
491 beq- FixupDAR /* must be a buggy dcbX, icbi insn. */ 482 beq- FixupDAR /* must be a buggy dcbX, icbi insn. */
492DARFixed:/* Return from dcbx instruction bug workaround */ 483DARFixed:/* Return from dcbx instruction bug workaround */
493 EXCEPTION_EPILOG_0 484 EXCEPTION_EPILOG_0
494 b DataAccess 485 EXCEPTION_PROLOG
486 mfspr r10,SPRN_DSISR
487 stw r10,_DSISR(r11)
488 mr r5,r10
489 mfspr r4,SPRN_DAR
490 li r10,0x00f0
491 mtspr SPRN_DAR,r10 /* Tag DAR, to be used in DTLB Error */
492 /* 0x300 is DataAccess exception, needed by bad_page_fault() */
493 EXC_XFER_LITE(0x300, handle_page_fault)
495 494
496 EXCEPTION(0x1500, Trap_15, unknown_exception, EXC_XFER_EE) 495 EXCEPTION(0x1500, Trap_15, unknown_exception, EXC_XFER_EE)
497 EXCEPTION(0x1600, Trap_16, unknown_exception, EXC_XFER_EE) 496 EXCEPTION(0x1600, Trap_16, unknown_exception, EXC_XFER_EE)