diff options
author | dzwdz | 2023-02-23 15:38:17 +0100 |
---|---|---|
committer | dzwdz | 2023-02-23 15:38:17 +0100 |
commit | c9daa8909313b020df57605d0bd50ac48b208d58 (patch) | |
tree | 7051752002999e648619bc91e4d99edfda7b9f01 /src/kernel | |
parent | 5715a511fcd0490dfc74579ee95f88ef1877f021 (diff) |
toolchain: update, move to a Camellia-specific toolchain
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/syscalls.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 259b59f..0810720 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -319,6 +319,7 @@ void __user *_sys_memflag(void __user *addr, size_t len, int flags) { addr = (userptr_t)((uintptr_t __force)addr & ~PAGE_MASK); // align to page boundary if (flags & MEMFLAG_FINDFREE) { + // TODO space out page allocations to catch stupid bugs addr = pagedir_findfree(pages, addr, len); if (!(flags & MEMFLAG_PRESENT)) SYSCALL_RETURN((uintptr_t)addr); |