From 56cac7ec30fddcd75c4cf6f8d4621674225a1edd Mon Sep 17 00:00:00 2001 From: ROMemories <152802150+ROMemories@users.noreply.github.com> Date: Fri, 29 Nov 2024 10:08:28 +0100 Subject: [PATCH] refactor(thread-executor): use `no_mangle` instead of `export_name` The export name was the same as the local function name and therefore redundant. --- src/ariel-os-embassy/src/thread_executor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ariel-os-embassy/src/thread_executor.rs b/src/ariel-os-embassy/src/thread_executor.rs index 342a3363a..793430ed3 100644 --- a/src/ariel-os-embassy/src/thread_executor.rs +++ b/src/ariel-os-embassy/src/thread_executor.rs @@ -12,7 +12,8 @@ use embassy_executor::{raw, Spawner}; // doesn't matter. const THREAD_FLAG_WAKEUP: ThreadFlags = 0x01; -#[export_name = "__pender"] +// This name is required by embassy-executor. +#[no_mangle] fn __pender(context: *mut ()) { // SAFETY: `context` is a `ThreadId` passed by `ThreadExecutor::new`. let thread_id = ThreadId::new(context as usize as u8);