mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
vmm: update thread ctx on context change
This commit is contained in:
@@ -591,6 +591,8 @@ bool vmm_dealwithrequest(void* addr, long error, bool user){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void vmm_switchcontext(vmm_context* context){
|
void vmm_switchcontext(vmm_context* context){
|
||||||
|
if(arch_getcls()->thread)
|
||||||
|
arch_getcls()->thread->ctx = context;
|
||||||
arch_getcls()->context = context;
|
arch_getcls()->context = context;
|
||||||
arch_mmu_switchcontext(context->context);
|
arch_mmu_switchcontext(context->context);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user