diff --git a/src/servers/syscalls.c b/src/servers/syscalls.c index 7488419..7fc4dda 100644 --- a/src/servers/syscalls.c +++ b/src/servers/syscalls.c @@ -16,6 +16,7 @@ #include #include #include +#include void handleSyscallResponse(const SyscallHeader *hdr) { SyscallRequest *req = getSyscall(hdr->header.requester); @@ -218,6 +219,12 @@ void handleSyscallResponse(const SyscallHeader *hdr) { ChdirCommand *chdircmd = (ChdirCommand *) hdr; strcpy(p->cwd, chdircmd->path); break; + + case COMMAND_MMAP: + if(hdr->header.status) break; + + MmapCommand *mmapcmd = (MmapCommand *) hdr; + mmapHandle(mmapcmd, req); } platformSetContextStatus(req->thread->context, req->ret);