Macro ruspiro_boot::come_alive_with[][src]

macro_rules! come_alive_with {
    ($path : path) => { ... };
}
Expand description

Use this macro to define the your custom one-time-initialization entry point function to be used once the mandatory boot process has finished and the processing is handed over to the high level rust code. As each core will come alive one after another, this function is called with the core id/number it’s running on. The next core comes alive after the actual one finished processing this function, it is guaranteed that the cores will come alive in sequence!

Example

come_alive_with!(my_init_once);

fn my_init_once(core: u32) {
    // do any one-time initialization here....
}