Replace unavailable flag-preserving instruction
It seems sub requires thumb2 instructions which are unavailable. This is in line with the rest of the sdk code base which uses subs.
This commit is contained in:
parent
e371f6af60
commit
542b86e5db
@ -79,7 +79,7 @@ bool clock_configure(enum clock_index clk_index, uint32_t src, uint32_t auxsrc,
|
|||||||
uint delay_cyc = configured_freq[clk_sys] / configured_freq[clk_index] + 1;
|
uint delay_cyc = configured_freq[clk_sys] / configured_freq[clk_index] + 1;
|
||||||
asm volatile (
|
asm volatile (
|
||||||
"1: \n\t"
|
"1: \n\t"
|
||||||
"sub %0, #1 \n\t"
|
"subs %0, #1 \n\t"
|
||||||
"bne 1b"
|
"bne 1b"
|
||||||
: "+r" (delay_cyc)
|
: "+r" (delay_cyc)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user