thermosphere: fix bug where x0 isn't saved

This commit is contained in:
TuxSH 2020-02-01 19:39:04 +00:00
parent 46c82e2d77
commit 256201922b

View file

@ -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