Kernel: Implement support for current thread pseudo-handle
This boots a few (mostly Nintendo 1st party) games further.
This commit is contained in:
parent
cdfa7157eb
commit
adee775f44
3 changed files with 16 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue