From 5b15bb5c0a575b73ba5972158631d8288ac66422 Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 30 May 2019 02:41:44 +0200 Subject: [PATCH] main: make boot_core0() naked --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2b2ebfa..5feebbc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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"); }