loader: detect CPU features

This commit is contained in:
Loïc Grégoire
2026-07-18 14:37:30 -04:00
parent 96d2bee857
commit 072239dc32
6 changed files with 13 additions and 5 deletions
+2
View File
@@ -24,6 +24,8 @@ pub const Nanoseconds = u64;
pub var kernel_heap_base: usize = 0;
pub var kernel_pfndb_base: usize = 0;
pub var boot_info: *BootInfo = undefined;
/// Return N kibibytes in bytes.
pub fn kib(comptime N: u32) usize {
return N * 1024;