From d8d25369678249be4dae7ba2738a7f0a5c3268f8 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 30 Oct 2025 13:52:22 +0100 Subject: executor: fix build with 'trace' on. --- embassy-executor/Cargo.toml | 2 ++ embassy-executor/src/raw/trace.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'embassy-executor') diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index ecc4b6338..e500833c0 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml @@ -30,6 +30,7 @@ build = [ {target = "thumbv7em-none-eabi", features = ["arch-cortex-m", "executor-interrupt", "executor-thread", "embassy-time-driver", "scheduler-deadline"]}, {target = "thumbv7em-none-eabi", features = ["arch-cortex-m", "executor-interrupt", "executor-thread", "scheduler-priority", "scheduler-deadline"]}, {target = "thumbv7em-none-eabi", features = ["arch-cortex-m", "executor-interrupt", "executor-thread", "scheduler-deadline"]}, + {target = "thumbv7em-none-eabi", features = ["arch-cortex-m", "executor-interrupt", "executor-thread", "embassy-time-driver", "scheduler-priority", "scheduler-deadline", "trace"]}, {target = "thumbv7em-none-eabi", features = ["arch-spin"]}, {target = "thumbv7em-none-eabi", features = ["arch-spin", "scheduler-deadline"]}, {target = "armv7a-none-eabi", features = ["arch-cortex-ar", "executor-thread"]}, @@ -37,6 +38,7 @@ build = [ {target = "armv7r-none-eabihf", features = ["arch-cortex-ar", "executor-thread"]}, {target = "riscv32imac-unknown-none-elf", features = ["arch-riscv32"]}, {target = "riscv32imac-unknown-none-elf", features = ["arch-riscv32", "executor-thread"]}, + {target = "riscv32imac-unknown-none-elf", features = ["arch-riscv32", "executor-thread", "trace"]}, # Nightly builds {group = "nightly", target = "thumbv7em-none-eabi", features = ["nightly"]}, {group = "nightly", target = "thumbv7em-none-eabi", features = ["nightly", "log"]}, diff --git a/embassy-executor/src/raw/trace.rs b/embassy-executor/src/raw/trace.rs index 74519b927..830162039 100644 --- a/embassy-executor/src/raw/trace.rs +++ b/embassy-executor/src/raw/trace.rs @@ -169,7 +169,7 @@ impl TaskTracker { } #[cfg(feature = "trace")] -extern "Rust" { +unsafe extern "Rust" { /// This callback is called when the executor begins polling. This will always /// be paired with a later call to `_embassy_trace_executor_idle`. /// -- cgit