Skip to content

Commit

Permalink
refactor(thread-executor): use no_mangle instead of export_name
Browse files Browse the repository at this point in the history
The export name was the same as the local function name and therefore
redundant.
  • Loading branch information
ROMemories committed Nov 29, 2024
1 parent 8c69b30 commit 56cac7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ariel-os-embassy/src/thread_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 56cac7e

Please sign in to comment.