1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

Kernel+LibC: Add a dbgputstr() syscall for sending strings to debug output.

This is very handy for the DebugLogStream implementation, among others. :^)
This commit is contained in:
Andreas Kling 2019-07-21 21:43:37 +02:00
parent 0ef13e60b0
commit af81645a2a
10 changed files with 33 additions and 4 deletions

View file

@ -2722,3 +2722,12 @@ int Process::sys$dbgputch(u8 ch)
IO::out8(0xe9, ch);
return 0;
}
int Process::sys$dbgputstr(const u8* characters, int length)
{
if (!validate_read(characters, length))
return -EFAULT;
for (int i = 0; i < length; ++i)
IO::out8(0xe9, characters[i]);
return 0;
}