Skip to content

Commit

Permalink
servers: relay mmap() response to memory manager
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 30, 2024
1 parent ab5fb0e commit 66dca0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/servers/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <kernel/syscalls.h>
#include <kernel/logger.h>
#include <kernel/io.h>
#include <kernel/memory.h>

void handleSyscallResponse(const SyscallHeader *hdr) {
SyscallRequest *req = getSyscall(hdr->header.requester);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 66dca0d

Please sign in to comment.