Skip to content

Commit bdb99c0

Browse files
committed
fix: invoke test main
1 parent 34d51b8 commit bdb99c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@ fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
6363
Rc::strong_count(&cloned_reference)
6464
);
6565

66+
#[cfg(not(test))]
6667
unsafe {
6768
userspace::jump_to_userspace(physical_memory_offset);
6869
}
6970

71+
#[cfg(test)]
72+
test_main();
73+
7074
kernel::hlt_loop();
7175
}
7276

0 commit comments

Comments
 (0)