diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-01-24 15:04:21 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-01-24 15:04:21 +0000 |
commit | b2323be33b5a89cc244d4488b21263a359aced96 (patch) | |
tree | 112b2df776d9e4ca404237c176f56433a4136471 /firmware/target/arm/crt0-pp.S | |
parent | fd13e09c4f79f9a26c76c160b007513cacc8b818 (diff) | |
download | rockbox-b2323be33b5a89cc244d4488b21263a359aced96.tar.gz rockbox-b2323be33b5a89cc244d4488b21263a359aced96.zip |
ARM: lr addresses the next instruction after the failing one in undefined instruction vector
Substract 4 before passing the argument to UIE so the correct address is displayed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24321 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/crt0-pp.S')
-rw-r--r-- | firmware/target/arm/crt0-pp.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/crt0-pp.S b/firmware/target/arm/crt0-pp.S index bd1fc035c9..9c996960cc 100644 --- a/firmware/target/arm/crt0-pp.S +++ b/firmware/target/arm/crt0-pp.S | |||
@@ -348,7 +348,7 @@ vectors: | |||
348 | in UIE. | 348 | in UIE. |
349 | */ | 349 | */ |
350 | undef_instr_handler: | 350 | undef_instr_handler: |
351 | mov r0, lr | 351 | sub r0, lr, #4 |
352 | mov r1, #0 | 352 | mov r1, #0 |
353 | b UIE | 353 | b UIE |
354 | 354 | ||