forked from len0rd/rockbox
arm: add support for processors with hardware division
ARMv7-M has hardware division, so it doesn't require __div0 or any support functions for 32-bit division. Change-Id: I840683a1a77d737f378899ca4bcf858216b81014
This commit is contained in:
parent
7e8a818d95
commit
639b587fc7
12 changed files with 25 additions and 14 deletions
|
@ -66,7 +66,7 @@ enum codec_status codec_start(enum codec_entry_call_reason reason)
|
|||
return codec_main(reason);
|
||||
}
|
||||
|
||||
#if defined(CPU_ARM) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
#if defined(ARM_NEED_DIV0)
|
||||
void __attribute__((naked)) __div0(void)
|
||||
{
|
||||
asm volatile("bx %0" : : "r"(ci->__div0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue