diff --git a/crate/bcm2837/src/asm.rs b/crate/bcm2837/src/asm.rs index 72f4c73..1c2b449 100644 --- a/crate/bcm2837/src/asm.rs +++ b/crate/bcm2837/src/asm.rs @@ -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"); }