diff options
Diffstat (limited to 'src/rt/test/rust_test_runtime.cpp')
| -rw-r--r-- | src/rt/test/rust_test_runtime.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/test/rust_test_runtime.cpp b/src/rt/test/rust_test_runtime.cpp index 8acfe45c9e6..f9a99d9acb1 100644 --- a/src/rt/test/rust_test_runtime.cpp +++ b/src/rt/test/rust_test_runtime.cpp @@ -45,9 +45,9 @@ void task_entry() { void rust_task_test::worker::run() { - rust_scheduler *scheduler = kernel->get_scheduler(); - scheduler->root_task->start((uintptr_t)&task_entry, (uintptr_t)NULL); - scheduler->start_main_loop(0); + rust_task *root_task = kernel->create_task(NULL, "main"); + root_task->start((uintptr_t)&task_entry, (uintptr_t)NULL); + root_task->sched->start_main_loop(0); } bool |
