mirror of https://github.com/ARMmbed/mbed-os.git
gaurd thumb instruction for amrc6
parent
4b9856604d
commit
45202df55e
|
|
@ -80,7 +80,7 @@ static void delay_loop(uint32_t count)
|
||||||
{
|
{
|
||||||
__asm__ volatile (
|
__asm__ volatile (
|
||||||
"%=:\n\t"
|
"%=:\n\t"
|
||||||
#if defined(__thumb__) && !defined(__thumb2__)
|
#if defined(__thumb__) && !defined(__thumb2__) && !defined(TOOLCHAIN_ARMC6)
|
||||||
"SUB %0, #1\n\t"
|
"SUB %0, #1\n\t"
|
||||||
#else
|
#else
|
||||||
"SUBS %0, %0, #1\n\t"
|
"SUBS %0, %0, #1\n\t"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue