From 65713df11c9e260804faa2772e455bd4ae3fde83 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sat, 1 Feb 2020 19:39:04 +0000 Subject: [PATCH] thermosphere: fix bug where x0 isn't saved --- thermosphere/src/start.s | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thermosphere/src/start.s b/thermosphere/src/start.s index e1d509b0d..da2184096 100644 --- a/thermosphere/src/start.s +++ b/thermosphere/src/start.s @@ -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