mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-10 05:32:40 -05:00
__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:
parent
96d164f26d
commit
12e85b609f
1 changed files with 4 additions and 3 deletions
|
|
@ -99,8 +99,9 @@ void __attribute__((noreturn)) UIE(unsigned int pc, unsigned int num)
|
|||
void __attribute__((naked)) __div0(void)
|
||||
{
|
||||
asm volatile (
|
||||
"ldr r0, [sp] \r\n"
|
||||
"mov r1, #3 \r\n"
|
||||
"b UIE \r\n"
|
||||
"ldr r0, [sp] \r\n"
|
||||
"sub r0, r0, #4 \r\n"
|
||||
"mov r1, #3 \r\n"
|
||||
"b UIE \r\n"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue