This commit is contained in:
nub31
2025-09-03 18:31:10 +02:00
parent 0583c8c1a3
commit f05e7c9e64
31 changed files with 164 additions and 163 deletions

View File

@@ -1,7 +1,4 @@
#include "mmap.h"
#include "../../api.h"
#include <stddef.h>
#include <stdio.h>
#define USABLE_REGION_SIZE 32
@@ -13,8 +10,7 @@ void map_memory(multiboot_info_t* info)
{
if (!(info->flags & (1 << 6)))
{
printf("Invalid memory map given by bootloader\n");
panic();
arch_panic("Invalid memory map given by bootloader\n");
}
size_t num_regions = 0;