diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-03-30 11:48:26 +0200 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-03-30 11:48:26 +0200 |
| commit | 444fbd7d5e3bda2ccfb52ec85fa601af6074129a (patch) | |
| tree | 2c77a87bd8f17f2eb26b3822587cf1221d01a4db | |
| parent | 686d6dc39ee2ecca330c0a46399633ea8be03f14 (diff) | |
fixed main.rs
| -rw-r--r-- | StrixKernel/src/main.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/StrixKernel/src/main.rs b/StrixKernel/src/main.rs index 8ab4568..0b4cca4 100644 --- a/StrixKernel/src/main.rs +++ b/StrixKernel/src/main.rs @@ -10,23 +10,12 @@ use bootloader::{BootInfo, entry_point}; entry_point!(kernel_main); fn kernel_main(boot_info: &'static BootInfo) -> ! { - use strix_os::memory::active_level_4_table; - use x86_64::VirtAddr; println!("Hello World{}", "!"); println!("The Strix OS kernel is now online"); strix_os::init(); // Call the init function as declared in ./lib.rs - let phys_mem_offset = VirtAddr::new(boot_info.physical_memory_offset); - let l4_table = unsafe { active_level_4_table(phys_mem_offset) }; - - for (i, entry) in l4_table.iter().enumerate() { - if !entry.is_unused() { - println!("L4 Entry {}: {:?}", i, entry); - } - } - // Continue as normal #[cfg(test)] @@ -53,4 +42,4 @@ fn panic(info: &PanicInfo) -> ! { #[test_case] fn trivial_assertion() { assert_eq!(1, 1); -} +}
\ No newline at end of file |
