Big code refactor, get rid of HAL entirely
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user