mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-29 14:32:58 +02:00
kern: fix reboot to fatal error
This commit is contained in:
parent
78510a74f0
commit
9c3e45a856
@ -558,7 +558,7 @@ namespace ams::kern::board::nintendo::nx {
|
|||||||
/* NOTE: Atmosphere extension; if we received an exception context from Panic(), */
|
/* NOTE: Atmosphere extension; if we received an exception context from Panic(), */
|
||||||
/* generate a fatal error report using it. */
|
/* generate a fatal error report using it. */
|
||||||
const KExceptionContext *e_ctx = static_cast<const KExceptionContext *>(arg);
|
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. */
|
/* Clear the fatal context. */
|
||||||
std::memset(f_ctx, 0xCC, sizeof(*f_ctx));
|
std::memset(f_ctx, 0xCC, sizeof(*f_ctx));
|
||||||
|
Loading…
Reference in New Issue
Block a user