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:
parent
fd13e09c4f
commit
b2323be33b
9 changed files with 9 additions and 9 deletions
|
@ -348,7 +348,7 @@ vectors:
|
|||
in UIE.
|
||||
*/
|
||||
undef_instr_handler:
|
||||
mov r0, lr
|
||||
sub r0, lr, #4
|
||||
mov r1, #0
|
||||
b UIE
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@ vectors:
|
|||
in UIE.
|
||||
*/
|
||||
undef_instr_handler:
|
||||
mov r0, lr
|
||||
sub r0, lr, #4
|
||||
mov r1, #0
|
||||
b UIE
|
||||
|
||||
|
|
|
@ -569,7 +569,7 @@ stackmunge:
|
|||
in UIE.
|
||||
*/
|
||||
undef_instr_handler:
|
||||
mov r0, lr
|
||||
sub r0, lr, #4
|
||||
mov r1, #0
|
||||
b UIE
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -218,7 +218,7 @@ vectors_end:
|
|||
in UIE.
|
||||
*/
|
||||
undef_instr_handler:
|
||||
mov r0, lr
|
||||
sub r0, lr, #4
|
||||
mov r1, #0
|
||||
b UIE
|
||||
|
||||
|
|
|
@ -285,7 +285,7 @@ vectors_end:
|
|||
in UIE.
|
||||
*/
|
||||
undef_instr_handler:
|
||||
mov r0, lr
|
||||
sub r0, lr, #4
|
||||
mov r1, #0
|
||||
b UIE
|
||||
|
||||
|
|
|
@ -137,7 +137,7 @@ start_loc:
|
|||
in UIE.
|
||||
*/
|
||||
undef_instr_handler:
|
||||
mov r0, lr
|
||||
sub r0, lr, #4
|
||||
mov r1, #0
|
||||
b UIE
|
||||
|
||||
|
|
Loading…
Reference in a new issue