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