mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
[APT/Kernel] More fixing hacks
This commit is contained in:
parent
98501c90d3
commit
fecf038982
3 changed files with 15 additions and 12 deletions
|
@ -51,6 +51,7 @@ void Kernel::setupIdleThread() {
|
|||
std::memcpy(&mem.getFCRAM()[fcramIndex], idleThreadCode, sizeof(idleThreadCode));
|
||||
|
||||
t.entrypoint = codeAddress;
|
||||
t.tlsBase = 0;
|
||||
t.gprs[13] = 0; // Set SP & LR to 0 just in case. The idle thread should never access memory, but let's be safe
|
||||
t.gprs[14] = 0;
|
||||
t.gprs[15] = codeAddress;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue