fix ch4
This commit is contained in:
parent
22e52514a5
commit
5a439b8689
1 changed files with 2 additions and 2 deletions
|
@ -15,6 +15,7 @@ mod switch;
|
|||
mod task;
|
||||
|
||||
use crate::loader::{get_app_data, get_num_app};
|
||||
use crate::sbi::shutdown;
|
||||
use crate::sync::UPSafeCell;
|
||||
use crate::trap::TrapContext;
|
||||
use alloc::vec::Vec;
|
||||
|
@ -151,8 +152,7 @@ impl TaskManager {
|
|||
// go back to user mode
|
||||
} else {
|
||||
println!("All applications completed!");
|
||||
use crate::board::QEMUExit;
|
||||
crate::board::QEMU_EXIT_HANDLE.exit_success();
|
||||
shutdown(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue