main: make boot_core0() naked
This commit is contained in:
parent
c0610ad66a
commit
5b15bb5c0a
|
@ -40,9 +40,12 @@ pub unsafe extern "C" fn _boot_cores() -> ! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[naked]
|
||||||
|
#[inline(never)]
|
||||||
unsafe fn boot_core0() -> ! {
|
unsafe fn boot_core0() -> ! {
|
||||||
l1_cache_init();
|
l1_cache_init();
|
||||||
zero_bss(&mut __bss_start, &mut __bss_end);
|
zero_bss(&mut __bss_start, &mut __bss_end);
|
||||||
|
|
||||||
main();
|
main();
|
||||||
panic!("return from main");
|
panic!("return from main");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue