From 10a1e29a64ec3369490bf4b7556bcecb3471f275 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 11 Dec 2025 18:54:57 +0700 Subject: [PATCH] Try fix for other arch --- drivers/storage/bcm2835-sdhcid/src/sd/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/storage/bcm2835-sdhcid/src/sd/mod.rs b/drivers/storage/bcm2835-sdhcid/src/sd/mod.rs index dcbcb3e09f..afb568291a 100644 --- a/drivers/storage/bcm2835-sdhcid/src/sd/mod.rs +++ b/drivers/storage/bcm2835-sdhcid/src/sd/mod.rs @@ -14,6 +14,12 @@ pub(crate) unsafe fn wait_cycles(mut n: usize) { } } +#[cfg(target_arch = "riscv64")] +#[inline(always)] +pub(crate) unsafe fn wait_msec(mut n: usize) { + todo!() +} + #[cfg(target_arch = "aarch64")] #[inline(always)] pub(crate) unsafe fn wait_msec(mut n: usize) { @@ -36,7 +42,7 @@ pub(crate) unsafe fn wait_msec(mut n: usize) { } } -#[cfg(target_arch = "x86_64")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] #[inline(always)] pub(crate) unsafe fn wait_msec(n: usize) { thread::sleep(Duration::from_millis(n as u64));