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
commit af81645a2a
Notes: sideshowbarker 2024-07-19 13:05:46 +09:00
10 changed files with 33 additions and 4 deletions

View file

@ -72,6 +72,8 @@ static u32 handle(RegisterDump& regs, u32 function, u32 arg1, u32 arg2, u32 arg3
break;
case Syscall::SC_dbgputch:
return current->process().sys$dbgputch((u8)arg1);
case Syscall::SC_dbgputstr:
return current->process().sys$dbgputstr((const u8*)arg1, (int)arg2);
case Syscall::SC_sleep:
return current->process().sys$sleep((unsigned)arg1);
case Syscall::SC_usleep: