diff options
author | Xander <xander@biltopia.org> | 2023-07-21 22:38:43 +0200 |
---|---|---|
committer | Xander <xander@biltopia.org> | 2023-07-21 22:38:43 +0200 |
commit | 58096a11ea200d4caf656bac712cde24daa8a697 (patch) | |
tree | 41df97b7d352217888804d8b13ae0802beaa5ffd /kernel/bootinfo/multiboot.sats | |
parent | 1d25d9783127c181f79732eb5c20c680444af414 (diff) | |
download | ats-os-58096a11ea200d4caf656bac712cde24daa8a697.tar.xz ats-os-58096a11ea200d4caf656bac712cde24daa8a697.zip |
Working frame allocator but VERY ugly code
Diffstat (limited to 'kernel/bootinfo/multiboot.sats')
-rw-r--r-- | kernel/bootinfo/multiboot.sats | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/bootinfo/multiboot.sats b/kernel/bootinfo/multiboot.sats index 963e2e6..0a0dce8 100644 --- a/kernel/bootinfo/multiboot.sats +++ b/kernel/bootinfo/multiboot.sats @@ -59,5 +59,11 @@ fn get_elf_header (p : !bootptr, n : size_t) : elf64_shdr_t fn print_elf_headers (p : !bootptr) : void fn get_kernel_ranges (p : !bootptr) : (Ptr,Ptr) // (kernel start, kernel end) -fn get_bootinfo_ranges (p : !bootptr) : (ptr,ptr) // (bootinfo start, bootinfo end) +fn get_multiboot_ranges (p : !bootptr) : (Ptr0,Ptr0) // (bootinfo start, bootinfo end) +macdef invalid_area = @{ + base_addr = the_null_ptr, + length = i2sz(1), + type = 0u, + reserved = 0u +} |