From 149f9945a9e47a05a6bd730d6e5ff6890ac34c76 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 25 Nov 2021 12:40:45 +0100 Subject: [PATCH] Page table & entry struc thing --- kernel/paging.c | 6 ++++++ kernel/paging.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/kernel/paging.c b/kernel/paging.c index e69de29..78318c2 100644 --- a/kernel/paging.c +++ b/kernel/paging.c @@ -0,0 +1,6 @@ +#include "paging.h" + +struct page_entry { + int index; + int start_addr; +} page_table[PAGE_TABLE_SIZE]; diff --git a/kernel/paging.h b/kernel/paging.h index c6d4bd3..e585f55 100644 --- a/kernel/paging.h +++ b/kernel/paging.h @@ -1,4 +1,4 @@ #define PAGE_SIZE 100 #define PAGE_TABLE_SIZE 128 -char* malloc(unsigned int pages); +struct page_entry;