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/mem/virt.c | |
parent | a5fffadce4ee1c30fb7b80150821d4164c6012c7 (diff) |
add `__force` for marking casts across adress spaces
Diffstat (limited to 'src/kernel/mem/virt.c')
-rw-r--r-- | src/kernel/mem/virt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/mem/virt.c b/src/kernel/mem/virt.c index 7a38a88..a9450c7 100644 --- a/src/kernel/mem/virt.c +++ b/src/kernel/mem/virt.c @@ -42,7 +42,7 @@ bool virt_iter_next(struct virt_iter *iter) { } else { // "iterate" over physical memory // the double cast supresses the warning about changing address spaces - iter->frag = (void*)(uintptr_t)iter->_virt; + iter->frag = (void* __force)iter->_virt; } iter->frag_len = partial; |