aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/paging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/include/paging.h')
-rw-r--r--src/kernel/include/paging.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/kernel/include/paging.h b/src/kernel/include/paging.h
index d42ec52..56fa7fa 100644
--- a/src/kernel/include/paging.h
+++ b/src/kernel/include/paging.h
@@ -3,10 +3,16 @@
#include <sys.h>
#include <stdbool.h>
+// Bits in the error code for page fault
+#define PF_PRESENT_BIT (1<<0)
+#define PF_WRITE_BIT (1<<1)
+#define PF_USER_BIT (1<<2)
+#define PF_RSVD_WRITE_BIT (1<<3)
+#define PF_OPFETCH_BIT (1<<4)
+
struct page_directory;
typedef struct page_directory pagedir_t;
-
void paging_setup(void* kernel_data_end);
pagedir_t *get_current_pagedir();