fix ch8
This commit is contained in:
parent
e48a85dd4b
commit
1a71b071f4
1 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@ mod task;
|
|||
|
||||
use self::id::TaskUserRes;
|
||||
use crate::fs::{open_file, OpenFlags};
|
||||
use crate::sbi::shutdown;
|
||||
use alloc::{sync::Arc, vec::Vec};
|
||||
use lazy_static::*;
|
||||
use manager::fetch_task;
|
||||
|
@ -82,10 +83,10 @@ pub fn exit_current_and_run_next(exit_code: i32) {
|
|||
);
|
||||
if exit_code != 0 {
|
||||
//crate::sbi::shutdown(255); //255 == -1 for err hint
|
||||
crate::board::QEMU_EXIT_HANDLE.exit_failure();
|
||||
shutdown(true);
|
||||
} else {
|
||||
//crate::sbi::shutdown(0); //0 for success hint
|
||||
crate::board::QEMU_EXIT_HANDLE.exit_success();
|
||||
shutdown(false);
|
||||
}
|
||||
}
|
||||
remove_from_pid2process(pid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue