feat(init): spawn service over IPC with per-client allowance refunded on child death; up to 4 death watchers; spawntest on test image
This commit is contained in:
@@ -121,12 +121,13 @@ fn timer_is_on_time(events: CapSlot) -> Result<(), &'static str> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Runs the test, reports, and halts the machine.
|
||||
pub fn run(storage: &mut Storage, scratch: &mut [u8]) -> ! {
|
||||
match run_phases(storage, scratch) {
|
||||
Ok(()) => libkos::println!("SMPTEST PASS"),
|
||||
Err(why) => libkos::println!("SMPTEST FAIL: {}", why),
|
||||
}
|
||||
/// Runs the hart checks; on failure reports and halts the machine, else
|
||||
/// returns so the spawn test can run (and report the whole result).
|
||||
pub fn run(storage: &mut Storage, scratch: &mut [u8]) {
|
||||
let Err(why) = run_phases(storage, scratch) else {
|
||||
return;
|
||||
};
|
||||
libkos::println!("SMPTEST FAIL: {}", why);
|
||||
match crate::devices::system_control() {
|
||||
Some(control) => syscall::halt(control),
|
||||
None => {
|
||||
|
||||
Reference in New Issue
Block a user