mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
kernel: misc fixes
This commit is contained in:
@@ -27,7 +27,7 @@ syscallret_t syscall_mmap(context_t *context, void *hint, size_t len, int prot,
|
||||
__assert((~KNOWN_PROT & prot) == 0);
|
||||
|
||||
// check alignment
|
||||
if (len == 0 || (uintptr_t)hint % PAGE_SIZE || len % PAGE_SIZE) {
|
||||
if (len == 0 || (uintptr_t)hint % PAGE_SIZE) {
|
||||
ret.errno = EINVAL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user