From 66dca0dca41c9cc259a11d7e2d3815a93152bbf2 Mon Sep 17 00:00:00 2001 From: jewelcodes Date: Fri, 29 Nov 2024 21:37:02 -0500 Subject: [PATCH] servers: relay mmap() response to memory manager --- src/servers/syscalls.c | 7 +++++++ 1 file changed, 7 insertions(+) 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);