mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-10-30 15:39:02 -05:00 
			
		
		
		
	scheduler: Clear exclusive state when switching contexts
This commit is contained in:
		| @@ -85,6 +85,7 @@ void Scheduler::SwitchContext(Thread* new_thread) { | ||||
|  | ||||
|         cpu_core->LoadContext(new_thread->context); | ||||
|         cpu_core->SetTlsAddress(new_thread->GetTLSAddress()); | ||||
|         cpu_core->ClearExclusiveState(); | ||||
|     } else { | ||||
|         current_thread = nullptr; | ||||
|         // Note: We do not reset the current process and current page table when idling because | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MerryMage
					MerryMage