Simple filetest passed on qemu/k210.

This commit is contained in:
Yifan Wu 2020-12-20 13:52:38 +08:00
parent b68278f22e
commit b121689d08
11 changed files with 159 additions and 24 deletions

View file

@ -46,17 +46,7 @@ pub fn rust_main() -> ! {
trap::enable_timer_interrupt();
timer::set_next_trigger();
fs::list_apps();
//println!("after listing apps");
task::add_initproc();
/*
println!("after adding initproc!");
println!("list apps again!");
fs::list_apps();
println!("test user_shell now!");
let user_shell = fs::open_file("user_shell", fs::OpenFlags::RDONLY).unwrap();
println!("user_shell size = {}", user_shell.read_all().len());
println!("before running tasks!");
*/
task::run_tasks();
panic!("Unreachable in rust_main!");
}