create_desktop in kernel can run correctly

This commit is contained in:
Yu Chen 2022-06-20 22:41:20 +08:00
parent 5b0c372507
commit c348cbdbfa
5 changed files with 38 additions and 23 deletions

View file

@ -32,6 +32,8 @@ mod task;
mod timer;
mod trap;
use syscall::create_desktop;
core::arch::global_asm!(include_str!("entry.asm"));
fn clear_bss() {
@ -69,6 +71,7 @@ pub fn rust_main() -> ! {
timer::set_next_trigger();
board::device_init();
fs::list_apps();
syscall::create_desktop();
task::add_initproc();
*DEV_NON_BLOCKING_ACCESS.exclusive_access() = true;
task::run_tasks();