Big code refactor, get rid of HAL entirely
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <limine.h>
|
||||
#include "bootinfo.h"
|
||||
#include "hal/hal.h"
|
||||
#include "bootinfo/bootinfo.h"
|
||||
#include "cpu/hang.h"
|
||||
|
||||
BootInfo BOOT_INFO;
|
||||
|
||||
@ -26,7 +26,7 @@ DEFINE_REQ(module, MODULE);
|
||||
|
||||
void bootinfo_init(void) {
|
||||
if (framebuffer_req.response == NULL || framebuffer_req.response->framebuffer_count < 1) {
|
||||
hal_hang();
|
||||
cpu_hang();
|
||||
}
|
||||
BOOT_INFO.fb = framebuffer_req.response->framebuffers[0];
|
||||
|
||||
@ -35,7 +35,7 @@ void bootinfo_init(void) {
|
||||
|
||||
struct limine_paging_mode_response *pagingres = paging_req.response;
|
||||
if (pagingres->mode != LIMINE_PAGING_MODE_X86_64_4LVL) {
|
||||
hal_hang();
|
||||
cpu_hang();
|
||||
}
|
||||
|
||||
struct limine_hhdm_response *hhdmres = hhdm_req.response;
|
||||
@ -68,7 +68,7 @@ void bootinfo_init(void) {
|
||||
}
|
||||
}
|
||||
if (BOOT_INFO.smp_bspindex == (uint64_t)-1) {
|
||||
hal_hang();
|
||||
cpu_hang();
|
||||
}
|
||||
|
||||
struct limine_rsdp_response *rsdpres = rsdp_req.response;
|
||||
|
||||
Reference in New Issue
Block a user