Attribute Macro main
#[main]Expand description
Marks a function to be called on the primary core after the platform initialization.
The function signature must be fn(cpu_id: usize, arg: usize) -> !, where
cpu_id is the logical CPU ID (0, 1, …, N-1, N is the number of CPU
cores on the platform), and arg is passed from the bootloader (typically
the device tree blob address).
§Example
#[axplat::main]
fn primary_main(cpu_id: usize, arg: usize) -> ! {
todo!() // Your code here
}