summaryrefslogtreecommitdiff
path: root/src/kernel/arch/generic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/arch/generic.h')
-rw-r--r--src/kernel/arch/generic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h
index 46782f8..22efe58 100644
--- a/src/kernel/arch/generic.h
+++ b/src/kernel/arch/generic.h
@@ -1,6 +1,7 @@
#pragma once
#include <kernel/arch/log.h>
+#include <stdbool.h>
// i have no idea where else to put it
// some code assumes that it's a power of 2
@@ -15,3 +16,9 @@ void halt_cpu();
// src/arch/i386/sysenter.s
void sysexit(void (*fun)(), void *stack_top);
void sysenter_setup();
+
+// all of those can allocate memory
+struct pagedir *pagedir_new();
+void pagedir_map(struct pagedir *dir, void *virt, void *phys,
+ bool user, bool writeable);
+void pagedir_use(struct pagedir *);