Skip to content

Commit 7e0a797

Browse files
committed
Moved the shutdown command to kmain
This may make tests more reliable. Signed-off-by: SlyMarbo <[email protected]>
1 parent 78e0b04 commit 7e0a797

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! {
4343
#[cfg(not(test))]
4444
kmain();
4545

46-
kernel::shutdown_qemu();
4746
kernel::halt_loop();
4847
}
4948

@@ -63,6 +62,8 @@ fn kmain() {
6362
memory::pmm::debug();
6463
pci::init();
6564
pci::debug();
65+
66+
kernel::shutdown_qemu();
6667
}
6768

6869
// Testing framework.

0 commit comments

Comments
 (0)