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
This commit is contained in:
Rafaël Carré 2010-01-24 15:04:21 +00:00
parent fd13e09c4f
commit b2323be33b
9 changed files with 9 additions and 9 deletions

View file

@ -348,7 +348,7 @@ vectors:
in UIE.
*/
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -124,7 +124,7 @@ newstart:
* we're in. Second parameter is exception number, used for a string lookup
* in UIE. */
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -341,7 +341,7 @@ remap_end:
* we're in. Second parameter is exception number, used for a string lookup
* in UIE. */
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -174,7 +174,7 @@ vectors:
in UIE.
*/
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -569,7 +569,7 @@ stackmunge:
in UIE.
*/
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -508,7 +508,7 @@ start_loc:
* we're in. Second parameter is exception number, used for a string lookup
* in UIE. */
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -218,7 +218,7 @@ vectors_end:
in UIE.
*/
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -285,7 +285,7 @@ vectors_end:
in UIE.
*/
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE

View file

@ -137,7 +137,7 @@ start_loc:
in UIE.
*/
undef_instr_handler:
mov r0, lr
sub r0, lr, #4
mov r1, #0
b UIE