diff options
author | dzwdz | 2021-09-21 16:30:43 +0200 |
---|---|---|
committer | dzwdz | 2021-09-21 16:30:43 +0200 |
commit | c7cdfb06c96d4db0649a3565873fda8a10d11ac2 (patch) | |
tree | 9dcfe46fe363b13bff1413a9557cb82b9ef5a362 /src/kernel/syscalls.c | |
parent | a5fffadce4ee1c30fb7b80150821d4164c6012c7 (diff) |
add `__force` for marking casts across adress spaces
Diffstat (limited to 'src/kernel/syscalls.c')
-rw-r--r-- | src/kernel/syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 39cad3a..0ca7867 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -261,7 +261,7 @@ int _syscall_memflag(void __user *addr, size_t len, int flags) { struct pagedir *pages = process_current->pages; if (flags != MEMFLAG_PRESENT) panic_unimplemented(); // TODO - addr = (userptr_t)((int)addr & ~PAGE_MASK); // align to page boundary + addr = (userptr_t)((int __force)addr & ~PAGE_MASK); // align to page boundary for (; addr < goal; addr += PAGE_SIZE) { if (pagedir_virt2phys(pages, addr, false, false)) { // allocated page, currently a no-op |