kernel: Compilation fixes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
72dadc6706
commit
9bab4c62a1
@ -433,7 +433,7 @@ namespace MemoryManager
|
||||
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 page = align_down<ARCH_PAGE_SIZE>(address);
|
||||
|
@ -29,12 +29,12 @@ namespace MemoryManager
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user