Big code refactor, get rid of HAL entirely

This commit is contained in:
2025-11-11 21:26:27 +01:00
parent 7015bc9576
commit 566b35f4d5
84 changed files with 477 additions and 520 deletions

View File

@ -1,13 +1,13 @@
#include <stddef.h>
#include <limine.h>
#include "pmm.h"
#include "kprintf.h"
#include "pmm/pmm.h"
#include "bitmap/bitmap.h"
#include "bootinfo/bootinfo.h"
#include "spinlock/spinlock.h"
#include "util/util.h"
#include "hal/hal.h"
#include "std/string.h"
#include "cpu/hang.h"
#include "kprintf.h"
PhysMem PHYS_MEM;
@ -32,7 +32,7 @@ void pmm_init(void) {
if (!memmap_ent) {
ERR("pmm", "required memory: {%lx}\n", bm->nbytes);
hal_hang();
cpu_hang();
}
size_t physbegin = memmap_ent->base;