mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:28:13 +00:00
Add simplified mmap() and munmap() syscalls.
This commit is contained in:
parent
a5caf7ca99
commit
9a296d63f3
13 changed files with 116 additions and 2 deletions
|
@ -90,6 +90,10 @@ DWORD handle(DWORD function, DWORD arg1, DWORD arg2, DWORD arg3)
|
|||
return current->sys$getpid();
|
||||
case Syscall::PosixWaitpid:
|
||||
return current->sys$waitpid((pid_t)arg1);
|
||||
case Syscall::PosixMmap:
|
||||
return (dword)current->sys$mmap((void*)arg1, (size_t)arg2);
|
||||
case Syscall::PosixMunmap:
|
||||
return current->sys$munmap((void*)arg1, (size_t)arg2);
|
||||
case Syscall::PosixExit:
|
||||
cli();
|
||||
locker.unlock();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue