forked from M-Labs/nac3
1
0
Fork 0

runtime/kernel/core1: use correct ABI

This commit is contained in:
pca006132 2021-01-18 16:43:30 +08:00
parent b4ff6dda24
commit 9e8b554c6d
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ impl KernelImage {
dsb(); dsb();
isb(); isb();
(mem::transmute::<u32, fn()>(self.__modinit__))(); (mem::transmute::<u32, extern "C" fn()>(self.__modinit__))();
if let Some(typeinfo) = self.typeinfo { if let Some(typeinfo) = self.typeinfo {
attribute_writeback(typeinfo as *const ()); attribute_writeback(typeinfo as *const ());
@ -133,7 +133,7 @@ impl KernelImage {
} }
#[no_mangle] #[no_mangle]
pub fn main_core1() { pub extern "C" fn main_core1() {
enable_fpu(); enable_fpu();
debug!("Core1 started"); debug!("Core1 started");