summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s3c2440/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/s3c2440/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/s3c2440/crt0.S')
-rw-r--r--firmware/target/arm/s3c2440/crt0.S29
1 files changed, 0 insertions, 29 deletions
diff --git a/firmware/target/arm/s3c2440/crt0.S b/firmware/target/arm/s3c2440/crt0.S
index 8cbd8ab91e..e103f4f49f 100644
--- a/firmware/target/arm/s3c2440/crt0.S
+++ b/firmware/target/arm/s3c2440/crt0.S
@@ -565,35 +565,6 @@ stackmunge:
565 */ 565 */
566 b vectors 566 b vectors
567 567
568/* All illegal exceptions call into UIE with exception address as first
569 parameter. This is calculated differently depending on which exception
570 we're in. Second parameter is exception number, used for a string lookup
571 in UIE.
572 */
573undef_instr_handler:
574 sub r0, lr, #4
575 mov r1, #0
576 b UIE
577
578/* We run sys mode most of the time, and should never see a software
579 exception being thrown. Make it illegal and call UIE.
580 */
581software_int_handler:
582reserved_handler:
583 sub r0, lr, #4
584 mov r1, #4
585 b UIE
586
587prefetch_abort_handler:
588 sub r0, lr, #4
589 mov r1, #1
590 b UIE
591
592data_abort_handler:
593 sub r0, lr, #8
594 mov r1, #2
595 b UIE
596
597#if defined(BOOTLOADER) 568#if defined(BOOTLOADER)
598fiq_handler: 569fiq_handler:
599 b UIE 570 b UIE