From ff990d38f903d487f550a76f6b1a1137e217f09f Mon Sep 17 00:00:00 2001 From: pjht Date: Sun, 9 Jun 2024 18:44:40 -0500 Subject: [PATCH] Print a message when all processes are sleeping after a yield --- src/tasking.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tasking.rs b/src/tasking.rs index ef4f2b9..8a0a75a 100644 --- a/src/tasking.rs +++ b/src/tasking.rs @@ -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(); } }