diff options
Diffstat (limited to 'embassy-executor/src/arch/cortex_ar.rs')
| -rw-r--r-- | embassy-executor/src/arch/cortex_ar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-executor/src/arch/cortex_ar.rs b/embassy-executor/src/arch/cortex_ar.rs index f9e2f3f7c..a9be3d323 100644 --- a/embassy-executor/src/arch/cortex_ar.rs +++ b/embassy-executor/src/arch/cortex_ar.rs | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | #[cfg(feature = "executor-interrupt")] | 1 | #[cfg(feature = "executor-interrupt")] |
| 2 | compile_error!("`executor-interrupt` is not supported with `arch-cortex-ar`."); | 2 | compile_error!("`executor-interrupt` is not supported with `arch-cortex-ar`."); |
| 3 | 3 | ||
| 4 | #[export_name = "__pender"] | 4 | #[unsafe(export_name = "__pender")] |
| 5 | #[cfg(any(feature = "executor-thread", feature = "executor-interrupt"))] | 5 | #[cfg(any(feature = "executor-thread", feature = "executor-interrupt"))] |
| 6 | fn __pender(context: *mut ()) { | 6 | fn __pender(context: *mut ()) { |
| 7 | // `context` is always `usize::MAX` created by `Executor::run`. | 7 | // `context` is always `usize::MAX` created by `Executor::run`. |
| @@ -26,7 +26,7 @@ mod thread { | |||
| 26 | use cortex_ar::asm::wfe; | 26 | use cortex_ar::asm::wfe; |
| 27 | pub use embassy_executor_macros::main_cortex_ar as main; | 27 | pub use embassy_executor_macros::main_cortex_ar as main; |
| 28 | 28 | ||
| 29 | use crate::{raw, Spawner}; | 29 | use crate::{Spawner, raw}; |
| 30 | 30 | ||
| 31 | /// Thread mode executor, using WFE/SEV. | 31 | /// Thread mode executor, using WFE/SEV. |
| 32 | /// | 32 | /// |
