kernel: mmu.h

This commit is contained in:
Matheus
2023-04-12 21:48:24 -03:00
parent 616b0208c2
commit c190f0bb74
2 changed files with 7 additions and 3 deletions
+6
View File
@@ -0,0 +1,6 @@
#ifndef _MMU_H_INCLUDE
#define _MMU_H_INCLUDE
#define PAGE_SIZE 4096
#endif
+1 -3
View File
@@ -2,6 +2,7 @@
#include <limine.h>
#include <logging.h>
#include <string.h>
#include <arch/mmu.h>
uintptr_t hhdmbase;
static size_t memorysize;
@@ -17,9 +18,6 @@ static bmsection_t bmsections[PMM_SECTION_COUNT];
static uint64_t *bitmap;
// TODO move to arch specific header
#define PAGE_SIZE 4096
static volatile struct limine_hhdm_request hhdmreq = {
.id = LIMINE_HHDM_REQUEST,
.revision = 0