vmm: acqure space mutex in page fault handler

This commit is contained in:
Matheus
2024-04-20 15:47:30 -03:00
parent 257eddc9d5
commit d5421608bb
+2
View File
@@ -303,6 +303,7 @@ bool vmm_pagefault(void *addr, bool user, int actions) {
return false; return false;
MUTEX_ACQUIRE(&space->pflock, false); MUTEX_ACQUIRE(&space->pflock, false);
MUTEX_ACQUIRE(&space->lock, false);
vmmrange_t *range = getrange(space, addr); vmmrange_t *range = getrange(space, addr);
bool status = false; bool status = false;
@@ -369,6 +370,7 @@ bool vmm_pagefault(void *addr, bool user, int actions) {
} }
cleanup: cleanup:
MUTEX_RELEASE(&space->lock);
MUTEX_RELEASE(&space->pflock); MUTEX_RELEASE(&space->pflock);
return status; return status;
} }