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

Kernel+LibC: Add exit_thread() syscall.

This commit is contained in:
Andreas Kling 2019-04-29 15:17:20 +02:00
parent 02b69cf06a
commit d07be1087a
6 changed files with 26 additions and 0 deletions

View file

@ -118,6 +118,11 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
current->process().sys$exit((int)arg1);
ASSERT_NOT_REACHED();
return 0;
case Syscall::SC_exit_thread:
cli();
current->process().sys$exit_thread((int)arg1);
ASSERT_NOT_REACHED();
break;
case Syscall::SC_chdir:
return current->process().sys$chdir((const char*)arg1);
case Syscall::SC_uname: