- May 10, 2018
- Apr 30, 2018
-
-
Lioncash authored
All of these variables and functions are related to timings and should be within the namespace.
-
- Apr 27, 2018
-
-
Lioncash authored
-
- Apr 26, 2018
-
-
Lioncash authored
-
- Apr 23, 2018
-
-
Subv authored
Verified with a hwtest and implemented based on reverse engineering. Thread A's priority will get bumped to the highest priority among all the threads that are waiting for a mutex that A holds. Once A releases the mutex and ownership is transferred to B, A's priority will return to normal and B's priority will be bumped.
-
- Apr 21, 2018
-
-
Subv authored
-
Subv authored
-
Subv authored
Switch mutexes are no longer kernel objects, they are managed in userland and only use the kernel to handle the contention case. Mutex addresses store a special flag value (0x40000000) to notify the guest code that there are still some threads waiting for the mutex to be released. This flag is updated when a thread calls ArbitrateUnlock. TODO: * Fix svcWaitProcessWideKey * Fix svcSignalProcessWideKey * Remove the Mutex class.
-
- Mar 31, 2018
-
-
bunnei authored
-
- Mar 19, 2018
-
-
bunnei authored
-
- Mar 16, 2018
- Mar 14, 2018
-
-
bunnei authored
-
- Feb 27, 2018
-
-
Jules Blok authored
-
- Feb 18, 2018
- Feb 14, 2018
-
-
Lioncash authored
-
- Jan 09, 2018
- Jan 03, 2018
-
-
bunnei authored
-
- Dec 31, 2017
-
-
bunnei authored
This is kinda crufty, but we need it for now to update guest state variables.
-
- Dec 30, 2017
- Dec 29, 2017
-
-
bunnei authored
-
- Oct 31, 2017
-
-
bunnei authored
-
- Oct 20, 2017
-
-
bunnei authored
-
- Oct 10, 2017
-
-
bunnei authored
-
- Oct 01, 2017
-
-
Subv authored
-
- Sep 30, 2017
-
-
bunnei authored
-
Huw Pascoe authored
-
- Sep 28, 2017
-
-
Subv authored
This change makes for a clearer (less confusing) path of execution in the scheduler, now the code to execute when a thread awakes is closer to the code that puts the thread to sleep (WaitSynch1, WaitSynchN). It also allows us to implement the special wake up behavior of ReplyAndReceive without hacking up WaitObject::WakeupAllWaitingThreads. If savestates are desired in the future, we can change this implementation to one similar to the CoreTiming event system, where we first register the callback functions at startup and assign their identifiers to the Thread callback variable instead of directly assigning a lambda to the wake up callback variable.
-
- Sep 26, 2017
-
-
Subv authored
Don't automatically assume that Thread::Create will only be called when the parent process is currently scheduled. This assumption will be broken when applets or system modules are loaded.
-
- Sep 24, 2017
-
-
MerryMage authored
Don't expose Memory::current_page_table as a global.
-
- Sep 15, 2017
-
-
Subv authored
Kernel/Threads: Don't clear the CPU instruction cache when performing a context switch from an idle thread into a thread in the same process. We were unnecessarily clearing the cache when going from Process A -> Idle -> Process A, this caused extreme performance regressions.
-