__div0: give the address of the instruction calling division to UIE

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26820 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-06-12 17:15:44 +00:00
parent 96d164f26d
commit 12e85b609f

View file

@ -100,6 +100,7 @@ void __attribute__((naked)) __div0(void)
{ {
asm volatile ( asm volatile (
"ldr r0, [sp] \r\n" "ldr r0, [sp] \r\n"
"sub r0, r0, #4 \r\n"
"mov r1, #3 \r\n" "mov r1, #3 \r\n"
"b UIE \r\n" "b UIE \r\n"
); );