From 9e8b554c6d380df1a73c1dc1e9a1bc71f33a9c16 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Mon, 18 Jan 2021 16:43:30 +0800 Subject: [PATCH] runtime/kernel/core1: use correct ABI --- src/runtime/src/kernel/core1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/src/kernel/core1.rs b/src/runtime/src/kernel/core1.rs index 9a041e0e..91a8dd9c 100644 --- a/src/runtime/src/kernel/core1.rs +++ b/src/runtime/src/kernel/core1.rs @@ -118,7 +118,7 @@ impl KernelImage { dsb(); isb(); - (mem::transmute::(self.__modinit__))(); + (mem::transmute::(self.__modinit__))(); if let Some(typeinfo) = self.typeinfo { attribute_writeback(typeinfo as *const ()); @@ -133,7 +133,7 @@ impl KernelImage { } #[no_mangle] -pub fn main_core1() { +pub extern "C" fn main_core1() { enable_fpu(); debug!("Core1 started");