mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2025-01-03 19:14:44 +00:00
thermosphere: fix bug where x0 isn't saved
This commit is contained in:
parent
57a4a3457e
commit
65713df11c
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,9 @@ _startCommon:
|
|||
dsb sy
|
||||
isb
|
||||
|
||||
// Save x0
|
||||
mov x21, x0
|
||||
|
||||
bl cacheClearLocalDataCacheOnBoot
|
||||
cbz x19, 1f
|
||||
|
||||
|
@ -87,6 +90,7 @@ _postMmuEnableReturnAddr:
|
|||
// Don't call init array to save space?
|
||||
mov w0, w8
|
||||
mov w1, w19
|
||||
mov x2, x21
|
||||
bl initSystem
|
||||
|
||||
// Save x18, reserve space for exception frame
|
||||
|
|
Loading…
Reference in a new issue