Declare kernel_task_entry as extern "C"

This commit is contained in:
YanWQ-monad 2024-06-07 15:39:36 +08:00 committed by Tate, Hongliang Tian
parent 74e4623e70
commit e8c8c027c5

View File

@ -275,7 +275,7 @@ impl TaskOptions {
pub fn build(self) -> Result<Arc<Task>> {
/// 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(());