vmm: update thread ctx on context change

This commit is contained in:
Matheus
2022-09-09 18:18:47 -03:00
parent 2848544ff0
commit 001f387363
+2
View File
@@ -591,6 +591,8 @@ bool vmm_dealwithrequest(void* addr, long error, bool user){
}
void vmm_switchcontext(vmm_context* context){
if(arch_getcls()->thread)
arch_getcls()->thread->ctx = context;
arch_getcls()->context = context;
arch_mmu_switchcontext(context->context);
}