kernel: Compilation fixes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-05-07 21:42:03 +02:00
parent 72dadc6706
commit 9bab4c62a1
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 3 additions and 3 deletions

View File

@ -433,7 +433,7 @@ namespace MemoryManager
return String::from_cstring(result.data()); return String::from_cstring(result.data());
} }
bool validate_access(void* mem, usize size, int flags) bool validate_access(const void* mem, usize size, int flags)
{ {
uintptr_t address = (uintptr_t)mem; uintptr_t address = (uintptr_t)mem;
uintptr_t page = align_down<ARCH_PAGE_SIZE>(address); uintptr_t page = align_down<ARCH_PAGE_SIZE>(address);

View File

@ -29,12 +29,12 @@ namespace MemoryManager
bool validate_access(const void* mem, usize size, int flags); bool validate_access(const void* mem, usize size, int flags);
bool validate_user_write(void* user, usize size) inline bool validate_user_write(void* user, usize size)
{ {
return validate_access(user, size, MMU::ReadWrite | MMU::User); return validate_access(user, size, MMU::ReadWrite | MMU::User);
} }
bool validate_user_read(const void* user, usize size) inline bool validate_user_read(const void* user, usize size)
{ {
return validate_access(user, size, MMU::User); return validate_access(user, size, MMU::User);
} }