From e8c8c027c588297614d111adfd83d8994aedfc9e Mon Sep 17 00:00:00 2001 From: YanWQ-monad Date: Fri, 7 Jun 2024 15:39:36 +0800 Subject: [PATCH] Declare `kernel_task_entry` as `extern "C"` --- framework/aster-frame/src/task/task.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/aster-frame/src/task/task.rs b/framework/aster-frame/src/task/task.rs index 03940342b..e5ffafb94 100644 --- a/framework/aster-frame/src/task/task.rs +++ b/framework/aster-frame/src/task/task.rs @@ -275,7 +275,7 @@ impl TaskOptions { pub fn build(self) -> Result> { /// all task will entering this function /// this function is mean to executing the task_fn in Task - extern "sysv64" fn kernel_task_entry() { + extern "C" fn kernel_task_entry() { let current_task = current_task() .expect("no current task, it should have current task in kernel task entry"); current_task.func.call(());