kern: SvcReturnFromException

This commit is contained in:
Michael Scire
2020-07-31 05:52:59 -07:00
committed by SciresM
parent 8cd81b3092
commit 5d462c626c
11 changed files with 647 additions and 56 deletions

View File

@@ -40,6 +40,8 @@ namespace ams::kern::arch::arm64 {
namespace {
constexpr inline u32 El0PsrMask = 0xFF0FFE20;
ALWAYS_INLINE bool IsFpuEnabled() {
return cpu::ArchitecturalFeatureAccessControlRegisterAccessor().IsFpEnabled();
}
@@ -216,7 +218,7 @@ namespace ams::kern::arch::arm64 {
out->lr = e_ctx->x[30];
out->sp = e_ctx->sp;
out->pc = e_ctx->pc;
out->pstate = e_ctx->psr & 0xFF0FFE20;
out->pstate = e_ctx->psr & El0PsrMask;
/* Get the thread's general purpose registers. */
if (thread->IsCallingSvc()) {