Move vmm fully into hal

This commit is contained in:
2025-09-02 07:51:02 +02:00
parent 0fb3a1ca75
commit 920de10025
13 changed files with 76 additions and 186 deletions

View File

@ -13,11 +13,7 @@ BootInfo BOOT_INFO;
static volatile struct limine_paging_mode_request paging_req = {
.id = LIMINE_PAGING_MODE_REQUEST,
.revision = 0,
#if defined(__x86_64__)
.mode = LIMINE_PAGING_MODE_X86_64_4LVL,
#else
# error "Paging mode is unknown for this architecture"
#endif
};
DEFINE_REQ(kernel_address, KERNEL_ADDRESS);
@ -38,9 +34,7 @@ void bootinfo_init(void) {
BOOT_INFO.modules = modulesres;
struct limine_paging_mode_response *pagingres = paging_req.response;
#if defined(__x86_64__)
if (pagingres->mode != LIMINE_PAGING_MODE_X86_64_4LVL) {
#endif
hal_hang();
}