mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
kernel: mmu.h
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
#ifndef _MMU_H_INCLUDE
|
||||||
|
#define _MMU_H_INCLUDE
|
||||||
|
|
||||||
|
#define PAGE_SIZE 4096
|
||||||
|
|
||||||
|
#endif
|
||||||
+1
-3
@@ -2,6 +2,7 @@
|
|||||||
#include <limine.h>
|
#include <limine.h>
|
||||||
#include <logging.h>
|
#include <logging.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <arch/mmu.h>
|
||||||
|
|
||||||
uintptr_t hhdmbase;
|
uintptr_t hhdmbase;
|
||||||
static size_t memorysize;
|
static size_t memorysize;
|
||||||
@@ -17,9 +18,6 @@ static bmsection_t bmsections[PMM_SECTION_COUNT];
|
|||||||
|
|
||||||
static uint64_t *bitmap;
|
static uint64_t *bitmap;
|
||||||
|
|
||||||
// TODO move to arch specific header
|
|
||||||
#define PAGE_SIZE 4096
|
|
||||||
|
|
||||||
static volatile struct limine_hhdm_request hhdmreq = {
|
static volatile struct limine_hhdm_request hhdmreq = {
|
||||||
.id = LIMINE_HHDM_REQUEST,
|
.id = LIMINE_HHDM_REQUEST,
|
||||||
.revision = 0
|
.revision = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user