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

@ -83,8 +83,7 @@ static Thread* current_thread;
static const u32 INITIAL_THREAD_ID = 1; ///< The first available thread id at startup
static u32 next_thread_id; ///< The next available thread id
/// Gets the current thread
inline Thread* GetCurrentThread() {
Thread* GetCurrentThread() {
return current_thread;
}