kernel: misc stuff

This commit is contained in:
Matheus
2023-08-08 21:20:58 -03:00
parent b26ed0bb18
commit c33078b9c2
4 changed files with 11 additions and 8 deletions
+1
View File
@@ -25,6 +25,7 @@ syscallret_t syscall_mmap(context_t *context, void *hint, size_t len, int prot,
__assert((~KNOWN_FLAGS & flags) == 0);
__assert((~KNOWN_PROT & prot) == 0);
__assert(!((flags & MAP_PRIVATE) && (flags & MAP_SHARED)));
// check alignment
if (len == 0 || (uintptr_t)hint % PAGE_SIZE) {