Macro ruspiro_boot::run_with[][src]

macro_rules! run_with {
    ($path:path) => { ... };
}

Use this macro to define the never-returning processing entry point function to be used for the processing after all one-time initializations have been done. This function is intended to never return and is executed on each core individually. Therefore this function is called with the core id/number it’s running on.

Example

run_with!(my_processing);

fn my_processing(core: u32) -> ! {
    loop { } // safely hang here as we should never return.
}