[][src]Macro ruspiro_boot::come_alive_with

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

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 come alive one after another, this function is called with the core it's running on. The next core comes alive after the actual one finished processing this function

Example

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