mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 15:28:21 -04:00
kern: fix race-crash on interrupt controller save, improve fatal output
This commit is contained in:
parent
783f1077be
commit
19a279ce45
2 changed files with 5 additions and 3 deletions
|
@ -570,11 +570,16 @@ namespace ams::kern::board::nintendo::nx {
|
|||
f_ctx->afsr0 = 0;
|
||||
f_ctx->afsr1 = GetVersionIdentifier();
|
||||
|
||||
/* Set efsr/far. */
|
||||
f_ctx->far = cpu::GetFarEl1();
|
||||
f_ctx->esr = cpu::GetEsrEl1();
|
||||
|
||||
/* Copy registers. */
|
||||
for (size_t i = 0; i < util::size(e_ctx->x); ++i) {
|
||||
f_ctx->gprs[i] = e_ctx->x[i];
|
||||
}
|
||||
f_ctx->sp = e_ctx->sp;
|
||||
f_ctx->pc = cpu::GetElrEl1();
|
||||
|
||||
/* Dump stack trace. */
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue