From fd40f3e2f2efb67434a9e7d90eb35a30e30d1736 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Sun, 2 Nov 2025 19:06:05 +0100 Subject: Migrate from cortex-ar to aarch32-cpu - Feature name `arch-cortex-ar` remains the same. - Legacy ARM architectures are not supported. --- embassy-executor/src/arch/cortex_ar.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'embassy-executor/src') diff --git a/embassy-executor/src/arch/cortex_ar.rs b/embassy-executor/src/arch/cortex_ar.rs index a9be3d323..ce572738a 100644 --- a/embassy-executor/src/arch/cortex_ar.rs +++ b/embassy-executor/src/arch/cortex_ar.rs @@ -1,3 +1,6 @@ +#[cfg(arm_profile = "legacy")] +compile_error!("`arch-cortex-ar` does not support the legacy ARM profile, WFE/SEV are not available."); + #[cfg(feature = "executor-interrupt")] compile_error!("`executor-interrupt` is not supported with `arch-cortex-ar`."); @@ -10,7 +13,7 @@ fn __pender(context: *mut ()) { #[cfg(feature = "executor-thread")] // Try to make Rust optimize the branching away if we only use thread mode. if !cfg!(feature = "executor-interrupt") || context == THREAD_PENDER { - cortex_ar::asm::sev(); + aarch32_cpu::asm::sev(); return; } } @@ -23,7 +26,7 @@ mod thread { use core::marker::PhantomData; - use cortex_ar::asm::wfe; + use aarch32_cpu::asm::wfe; pub use embassy_executor_macros::main_cortex_ar as main; use crate::{Spawner, raw}; -- cgit