Skip to content

Commit

Permalink
kern: fix reboot to fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Dec 2, 2020
1 parent ee91f3f commit e760a9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<const KExceptionContext *>(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));
Expand Down

0 comments on commit e760a9d

Please sign in to comment.