mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-11 08:39:48 +12:00
[Kernel] Fix IPC on non-main threads
This commit is contained in:
parent
d3a2591d19
commit
194761ca54
1 changed files with 1 additions and 2 deletions
|
@ -98,9 +98,8 @@ void Kernel::reset() {
|
|||
}
|
||||
|
||||
// Get pointer to thread-local storage
|
||||
// TODO: Every thread should have its own TLS. We need to adjust for this when we add threads
|
||||
u32 Kernel::getTLSPointer() {
|
||||
return VirtualAddrs::TLSBase;
|
||||
return VirtualAddrs::TLSBase + currentThreadIndex * VirtualAddrs::TLSSize;
|
||||
}
|
||||
|
||||
// Result CloseHandle(Handle handle)
|
||||
|
|
Loading…
Add table
Reference in a new issue