mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: misc stuff
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user