mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-17 12:47:16 +00:00
Declare kernel_task_entry
as extern "C"
This commit is contained in:
parent
74e4623e70
commit
e8c8c027c5
@ -275,7 +275,7 @@ impl TaskOptions {
|
|||||||
pub fn build(self) -> Result<Arc<Task>> {
|
pub fn build(self) -> Result<Arc<Task>> {
|
||||||
/// all task will entering this function
|
/// all task will entering this function
|
||||||
/// this function is mean to executing the task_fn in Task
|
/// 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()
|
let current_task = current_task()
|
||||||
.expect("no current task, it should have current task in kernel task entry");
|
.expect("no current task, it should have current task in kernel task entry");
|
||||||
current_task.func.call(());
|
current_task.func.call(());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user