From 4823f92f9d3feabdc758d8cd6eef855de90fee2a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 22 Jul 2021 19:11:42 +0200 Subject: implement the debuglog() syscall --- src/kernel/arch/generic.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/kernel/arch/generic.h') diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h index 0b005a2..6200320 100644 --- a/src/kernel/arch/generic.h +++ b/src/kernel/arch/generic.h @@ -24,3 +24,7 @@ struct pagedir *pagedir_new(); void pagedir_map(struct pagedir *dir, void *virt, void *phys, bool user, bool writeable); void pagedir_switch(struct pagedir *); + +// return 0 on failure +void *pagedir_virt2phys(struct pagedir *dir, const void *virt, + bool user, bool writeable); -- cgit v1.2.3