summaryrefslogtreecommitdiff
path: root/kernel/syscalls/virtual_to_physical.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-02-14 17:40:06 +0100
committerAnton Kling <anton@kling.gg>2024-02-14 17:40:06 +0100
commit3922adcdec5bd003b4106ffce79c28553bc40c15 (patch)
treef1af360cd7ad75d4b5f19bf066bf7e29ce8e3e53 /kernel/syscalls/virtual_to_physical.c
parenta8ffc46136eb16adc87fb520c724467d1295a854 (diff)
Kernel: Update signal handling and IPC
Diffstat (limited to 'kernel/syscalls/virtual_to_physical.c')
-rw-r--r--kernel/syscalls/virtual_to_physical.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/syscalls/virtual_to_physical.c b/kernel/syscalls/virtual_to_physical.c
new file mode 100644
index 0000000..e5b3eba
--- /dev/null
+++ b/kernel/syscalls/virtual_to_physical.c
@@ -0,0 +1,6 @@
+#include <mmu.h>
+#include <syscalls.h>
+
+u32 syscall_virtual_to_physical(u32 virtual) {
+ return (u32)virtual_to_physical((void *)virtual, NULL);
+}