mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +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){
|
||||
if(arch_getcls()->thread)
|
||||
arch_getcls()->thread->ctx = context;
|
||||
arch_getcls()->context = context;
|
||||
arch_mmu_switchcontext(context->context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user