summaryrefslogtreecommitdiff
path: root/src/kernel/arch/generic.h
diff options
context:
space:
mode:
authordzwdz2021-07-26 18:17:01 +0200
committerdzwdz2021-07-26 18:17:01 +0200
commit2ae4e31b74efa29cc92554647d5c9dce077971c4 (patch)
treecb87d1979ead008b49839ba52245960d81669db5 /src/kernel/arch/generic.h
parentbfe381768bf9fde9595a7fdacfb8037458fc0f6a (diff)
fork() pt 1: cloning process memory
Diffstat (limited to 'src/kernel/arch/generic.h')
-rw-r--r--src/kernel/arch/generic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h
index 3ab21b4..1427658 100644
--- a/src/kernel/arch/generic.h
+++ b/src/kernel/arch/generic.h
@@ -21,8 +21,10 @@ int syscall_handler(int, int, int, int);
// all of those can allocate memory
struct pagedir *pagedir_new();
+struct pagedir *pagedir_copy(const struct pagedir *orig);
void pagedir_map(struct pagedir *dir, void *virt, void *phys,
bool user, bool writeable);
+
void pagedir_switch(struct pagedir *);
// return 0 on failure