Print a message when all processes are sleeping after a yield

This commit is contained in:
pjht 2024-06-09 18:44:40 -05:00
parent f81d1dd2ba
commit ff990d38f9
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -162,6 +162,7 @@ impl Tasking {
let previous_process = self.current_process.replace(next_process_pid).unwrap();
switch_to_asm(&mut (self.processes[previous_process].kernel_esp), kernel_esp);
} else if self.processes[current_process].sleeping.is_some() {
println!("All processes sleeping, exiting QEMU");
qemu_exit::exit_qemu();
}
}