main: make boot_core0() naked

This commit is contained in:
Astro 2019-05-30 02:41:44 +02:00
parent c0610ad66a
commit 5b15bb5c0a
1 changed files with 3 additions and 0 deletions

View File

@ -40,9 +40,12 @@ pub unsafe extern "C" fn _boot_cores() -> ! {
}
}
#[naked]
#[inline(never)]
unsafe fn boot_core0() -> ! {
l1_cache_init();
zero_bss(&mut __bss_start, &mut __bss_end);
main();
panic!("return from main");
}