From b2323be33b5a89cc244d4488b21263a359aced96 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 24 Jan 2010 15:04:21 +0000 Subject: 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 --- firmware/target/arm/crt0.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/target/arm/crt0.S') diff --git a/firmware/target/arm/crt0.S b/firmware/target/arm/crt0.S index 4bd01e4952..79cfdb3e1b 100644 --- a/firmware/target/arm/crt0.S +++ b/firmware/target/arm/crt0.S @@ -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 -- cgit v1.2.3