From e760a9d4b0db2fdb9f72efe8c43c694ea3fff5ab Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 2 Dec 2020 11:31:10 -0800 Subject: [PATCH] kern: fix reboot to fatal error --- .../source/board/nintendo/nx/kern_k_system_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/board/nintendo/nx/kern_k_system_control.cpp b/libraries/libmesosphere/source/board/nintendo/nx/kern_k_system_control.cpp index c9d7b7fef..a54bf2c13 100644 --- a/libraries/libmesosphere/source/board/nintendo/nx/kern_k_system_control.cpp +++ b/libraries/libmesosphere/source/board/nintendo/nx/kern_k_system_control.cpp @@ -558,7 +558,7 @@ namespace ams::kern::board::nintendo::nx { /* NOTE: Atmosphere extension; if we received an exception context from Panic(), */ /* generate a fatal error report using it. */ const KExceptionContext *e_ctx = static_cast(arg); - auto *f_ctx = GetPointer<::ams::impl::FatalErrorContext>(iram_address + RebootPayloadSize); + auto *f_ctx = GetPointer<::ams::impl::FatalErrorContext>(iram_address + 0x2E000); /* Clear the fatal context. */ std::memset(f_ctx, 0xCC, sizeof(*f_ctx));