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;