1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 12:27:35 +00:00

Kernel: Pass process arguments directly on the stack.

Get rid of the convoluted get_arguments and get_environment syscalls.
This patch also adds a simple /bin/env that just prints its environment.
This commit is contained in:
Andreas Kling 2019-02-22 01:55:22 +01:00
parent e969419202
commit 6d3e12899b
9 changed files with 59 additions and 66 deletions

View file

@ -111,10 +111,6 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
current->sys$exit((int)arg1);
ASSERT_NOT_REACHED();
return 0;
case Syscall::SC_get_arguments:
return current->sys$get_arguments((int*)arg1, (char***)arg2);
case Syscall::SC_get_environment:
return current->sys$get_environment((char***)arg1);
case Syscall::SC_chdir:
return current->sys$chdir((const char*)arg1);
case Syscall::SC_uname: