summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/debug.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-01 11:37:40 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-01 11:37:40 +0200
commit8d4d1c74579b52b32b9484a7a7ce4d6b0d9dab94 (patch)
tree854d08969b88bc6897a4daa0884cda2f42646b1d /Kernel/Syscalls/debug.cpp
parent6c1ba09fbdeb2c1df0593e017b944a5d2af767d8 (diff)
downloadserenity-8d4d1c74579b52b32b9484a7a7ce4d6b0d9dab94.zip
Kernel: Use Userspace<T> in more syscalls
Diffstat (limited to 'Kernel/Syscalls/debug.cpp')
-rw-r--r--Kernel/Syscalls/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Syscalls/debug.cpp b/Kernel/Syscalls/debug.cpp
index d17a68206b..bd22e8b4c2 100644
--- a/Kernel/Syscalls/debug.cpp
+++ b/Kernel/Syscalls/debug.cpp
@@ -42,7 +42,7 @@ int Process::sys$dbgputch(u8 ch)
return 0;
}
-int Process::sys$dbgputstr(const u8* characters, int length)
+int Process::sys$dbgputstr(Userspace<const u8*> characters, int length)
{
if (!length)
return 0;
@@ -50,7 +50,7 @@ int Process::sys$dbgputstr(const u8* characters, int length)
return -EFAULT;
SmapDisabler disabler;
for (int i = 0; i < length; ++i)
- IO::out8(0xe9, characters[i]);
+ IO::out8(0xe9, characters.unsafe_userspace_ptr()[i]);
return 0;
}