diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-06 13:49:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-06 14:05:58 +0200 |
commit | 93d98d49769de22695f8cb4c96c5ad6f7ac39d83 (patch) | |
tree | 416a0551a39e61ca79b10a07750898f050e220c8 /Kernel/UserOrKernelBuffer.h | |
parent | a1d7ebf85adca1550b5d61c8b7ab7fe95217e0e2 (diff) | |
download | serenity-93d98d49769de22695f8cb4c96c5ad6f7ac39d83.zip |
Kernel: Move Kernel/Memory/ code into Kernel::Memory namespace
Diffstat (limited to 'Kernel/UserOrKernelBuffer.h')
-rw-r--r-- | Kernel/UserOrKernelBuffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/UserOrKernelBuffer.h b/Kernel/UserOrKernelBuffer.h index 1357be4a9a..799d8df953 100644 --- a/Kernel/UserOrKernelBuffer.h +++ b/Kernel/UserOrKernelBuffer.h @@ -22,13 +22,13 @@ public: static UserOrKernelBuffer for_kernel_buffer(u8* kernel_buffer) { - VERIFY(!kernel_buffer || !is_user_address(VirtualAddress(kernel_buffer))); + VERIFY(!kernel_buffer || !Memory::is_user_address(VirtualAddress(kernel_buffer))); return UserOrKernelBuffer(kernel_buffer); } static Optional<UserOrKernelBuffer> for_user_buffer(u8* user_buffer, size_t size) { - if (user_buffer && !is_user_range(VirtualAddress(user_buffer), size)) + if (user_buffer && !Memory::is_user_range(VirtualAddress(user_buffer), size)) return {}; return UserOrKernelBuffer(user_buffer); } @@ -36,7 +36,7 @@ public: template<typename UserspaceType> static Optional<UserOrKernelBuffer> for_user_buffer(UserspaceType userspace, size_t size) { - if (!is_user_range(VirtualAddress(userspace.unsafe_userspace_ptr()), size)) + if (!Memory::is_user_range(VirtualAddress(userspace.unsafe_userspace_ptr()), size)) return {}; return UserOrKernelBuffer(const_cast<u8*>((const u8*)userspace.unsafe_userspace_ptr())); } |