aarch64: fix a bug of bcm2837::asm::dealy()

master
equation314 6 years ago
parent addf49ffdb
commit faa5f01f31

@ -4,7 +4,7 @@
#[inline]
pub unsafe fn delay(clock: u32) {
#[cfg(target_arch = "aarch64")]
asm!("1: subs x0, x0, #1; bne 1b;"
asm!("mov x1, x0; 1: subs x1, x1, #1; bne 1b;"
:: "{x0}"(clock)
:: "volatile");
}

Loading…
Cancel
Save