vmm: VMM_FLAGS_REPLACE

This commit is contained in:
Matheus
2024-08-10 22:41:29 -03:00
parent 1a955c7656
commit d310764085
2 changed files with 19 additions and 9 deletions
+1 -2
View File
@@ -44,9 +44,8 @@ syscallret_t syscall_mmap(context_t *context, void *hint, size_t len, int prot,
bool isfile = (flags & MAP_ANONYMOUS) == 0;
int vmmflags = 0;
// XXX this isn't the correct behaviour for MAP_FIXED
if (flags & MAP_FIXED)
vmmflags |= VMM_FLAGS_EXACT;
vmmflags |= VMM_FLAGS_REPLACE;
if ((flags & MAP_ANONYMOUS) == 0)
vmmflags |= VMM_FLAGS_FILE;