mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
vmm: change kernel pf handling
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ static void unmap(vmmspace_t *space, void *address, size_t size) {
|
||||
}
|
||||
|
||||
bool vmm_pagefault(void *addr, bool user, int actions) {
|
||||
if (user == false)
|
||||
if (user == false && addr > USERSPACE_END)
|
||||
return false;
|
||||
|
||||
addr = (void *)ROUND_DOWN((uintptr_t)addr, PAGE_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user