Kernel: Implement support for current thread pseudo-handle

This boots a few (mostly Nintendo 1st party) games further.
This commit is contained in:
Yuri Kunde Schlesner 2014-12-20 03:04:36 -02:00
parent cdfa7157eb
commit adee775f44
3 changed files with 16 additions and 2 deletions

View file

@ -78,6 +78,9 @@ Handle ArbitrateHighestPriorityThread(u32 arbiter, u32 address);
/// Arbitrate all threads currently waiting...
void ArbitrateAllThreads(u32 arbiter, u32 address);
/// Gets the current thread
Thread* GetCurrentThread();
/// Gets the current thread handle
Handle GetCurrentThreadHandle();