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

@ -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