#[secondary_main]
Expand description
Marks a function to be called on the secondary cores after the platform initialization.
The function signature must be fn(cpu_id: usize) -> !
, where cpu_id
is
the logical CPU ID (0, 1, …, N-1, N is the number of CPU cores on the
platform).
§Example
#[axplat::secondary_main]
fn secondary_main(cpu_id: usize) -> ! {
todo!() // Your code here
}