vmm: fix request edge case in multithreaded applications

This commit is contained in:
Matheus
2022-11-21 20:02:01 -03:00
parent 33f5a3d674
commit e550d94c91
+5
View File
@@ -684,6 +684,11 @@ bool vmm_dealwithrequest(void* addr, long error, bool user){
addr = (size_t)addr & ~(0xFFF);
// check if it was already mapped by another thread in the time
// it took to go from interrupt to lock acquire
if(arch_mmu_ismapped(cls->context->context, addr))
goto done;
cls_t* cls = arch_getcls();