summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/crt0.S
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-04-02 15:11:21 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-04-06 13:46:32 +0200
commitf33330c0ff90adad8855250877a4a3d0a407bba4 (patch)
tree6b5ad86aeb2e6b0a57f78965e59c618b4a26f30f /firmware/target/arm/imx31/crt0.S
parentbb0e4cc543e4c7bed6dff3a41d092b6867632535 (diff)
downloadrockbox-f33330c0ff90adad8855250877a4a3d0a407bba4.tar.gz
rockbox-f33330c0ff90adad8855250877a4a3d0a407bba4.zip
arm: factor all exception handlers out of the crt0.S files
Remove the implementations of all exceptions handlers from the various crt0.S files and have a single implementation in system-arm.h The new implementation is weak so that it can be overwritten by some specific code (like the unwinder) Change-Id: Ib3e041ed6037376bbe0e79286057e1051640dd90 Reviewed-on: http://gerrit.rockbox.org/205 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Diffstat (limited to 'firmware/target/arm/imx31/crt0.S')
-rw-r--r--firmware/target/arm/imx31/crt0.S29
1 files changed, 0 insertions, 29 deletions
diff --git a/firmware/target/arm/imx31/crt0.S b/firmware/target/arm/imx31/crt0.S
index 1c1ae55736..4e489800d4 100644
--- a/firmware/target/arm/imx31/crt0.S
+++ b/firmware/target/arm/imx31/crt0.S
@@ -326,35 +326,6 @@ remap_end:
326 .word 0 @ fiq_handler 326 .word 0 @ fiq_handler
327#endif /* BOOTLOADER */ 327#endif /* BOOTLOADER */
328 328
329 .text
330
331/* All illegal exceptions call into UIE with exception address as first
332 * parameter. This is calculated differently depending on which exception
333 * we're in. Second parameter is exception number, used for a string lookup
334 * in UIE. */
335undef_instr_handler:
336 sub r0, lr, #4
337 mov r1, #0
338 b UIE
339
340/* We run sys mode most of the time, and should never see a software
341 * exception being thrown. Make it illegal and call UIE. */
342software_int_handler:
343reserved_handler:
344 sub r0, lr, #4
345 mov r1, #4
346 b UIE
347
348prefetch_abort_handler:
349 sub r0, lr, #4
350 mov r1, #1
351 b UIE
352
353data_abort_handler:
354 sub r0, lr, #8
355 mov r1, #2
356 b UIE
357
358/* 256 words of IRQ stack */ 329/* 256 words of IRQ stack */
359 .section .bss 330 .section .bss
360 .balign 32 331 .balign 32