1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-18 08:22:04 +00:00

KThreadContext: Use El0PsrMask constant in GetUserContext

This commit is contained in:
merry 2022-03-06 18:38:32 +00:00 committed by SciresM
parent 2b6719ec25
commit 9545cbb4cb

View file

@ -251,7 +251,7 @@ namespace ams::kern::arch::arm64 {
} else { } else {
/* Set special registers. */ /* Set special registers. */
out->pc = static_cast<u32>(e_ctx->pc); out->pc = static_cast<u32>(e_ctx->pc);
out->pstate = e_ctx->psr & 0xFF0FFE20; out->pstate = e_ctx->psr & El0PsrMask;
/* Get the thread's general purpose registers. */ /* Get the thread's general purpose registers. */
for (size_t i = 0; i < 15; ++i) { for (size_t i = 0; i < 15; ++i) {