Page table & entry struc thing

paging
E. Almqvist 3 years ago
parent 58aa380708
commit 149f9945a9
  1. 6
      kernel/paging.c
  2. 2
      kernel/paging.h

@ -0,0 +1,6 @@
#include "paging.h"
struct page_entry {
int index;
int start_addr;
} page_table[PAGE_TABLE_SIZE];

@ -1,4 +1,4 @@
#define PAGE_SIZE 100
#define PAGE_TABLE_SIZE 128
char* malloc(unsigned int pages);
struct page_entry;

Loading…
Cancel
Save