From 2ae4e31b74efa29cc92554647d5c9dce077971c4 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 26 Jul 2021 18:17:01 +0200 Subject: fork() pt 1: cloning process memory --- src/kernel/arch/generic.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/kernel/arch/generic.h') 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 -- cgit v1.2.3