summaryrefslogtreecommitdiff
path: root/src/kernel/arch/generic.h
diff options
context:
space:
mode:
authordzwdz2021-07-22 19:11:42 +0200
committerdzwdz2021-07-22 19:11:42 +0200
commit4823f92f9d3feabdc758d8cd6eef855de90fee2a (patch)
tree374c065807f422818d79b35c33082df3d00b461d /src/kernel/arch/generic.h
parent8a168f2be5d90f972975abf0b40145a75c0231b7 (diff)
implement the debuglog() syscall
Diffstat (limited to 'src/kernel/arch/generic.h')
-rw-r--r--src/kernel/arch/generic.h4
1 files changed, 4 insertions, 0 deletions
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);