summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/pagedir.c
diff options
context:
space:
mode:
authordzwdz2022-07-21 15:25:33 +0200
committerdzwdz2022-07-21 15:25:33 +0200
commit6cd59ad0124d8a22e8cbb77f87e8f0aa20633c59 (patch)
treedc1942a47f1c9ca96e9724a8b7ab69d6afd9025b /src/kernel/arch/amd64/pagedir.c
parentbc49ea97bb61bbe55af3e847a88a649d04a93777 (diff)
fix type-related compiler warnings
Diffstat (limited to 'src/kernel/arch/amd64/pagedir.c')
-rw-r--r--src/kernel/arch/amd64/pagedir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/arch/amd64/pagedir.c b/src/kernel/arch/amd64/pagedir.c
index f4fbc09..75c9746 100644
--- a/src/kernel/arch/amd64/pagedir.c
+++ b/src/kernel/arch/amd64/pagedir.c
@@ -23,7 +23,7 @@ static bool addr_canonical(const __user void *addr) {
/* the types here are idiotic because C is idiotic */
static __user void *addr_canonize(const __user void *addr) {
- union virt_addr v = {.full = (void __force*)addr};
+ union virt_addr v = {.full = (void __user*)addr};
v.sign = (((uintptr_t)addr >> 47) & 1) * 0xFFFF;
assert(addr_canonical(addr));
return v.full;