1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-19 00:42:06 +00:00

ams: take three tries to edit a structure

This commit is contained in:
Michael Scire 2021-01-31 09:02:18 -08:00
parent f31ecb5c23
commit 2b5e8b5c65
2 changed files with 4 additions and 4 deletions

View file

@ -73,11 +73,11 @@ namespace ams {
ams_ctx.sp = ctx->sp.x;
ams_ctx.pc = ctx->pc.x;
ams_ctx.pstate = ctx->pstate;
ams_ctx.afsr0 = ctx->afsr0;
ams_ctx.afsr1 = (static_cast<u64>(::ams::exosphere::GetVersion(ATMOSPHERE_RELEASE_VERSION)) << 32) | static_cast<u64>(hos::GetVersion());
ams_ctx.afsr0 = static_cast<u32>(::ams::exosphere::GetVersion(ATMOSPHERE_RELEASE_VERSION));
if (svc::IsKernelMesosphere()) {
ams_ctx.afsr1 |= (static_cast<u64>('M') << (BITSIZEOF(u64) - BITSIZEOF(u8)));
ams_ctx.afsr0 |= (static_cast<u32>('M') << (BITSIZEOF(u32) - BITSIZEOF(u8)));
}
ams_ctx.afsr1 = static_cast<u32>(hos::GetVersion());
ams_ctx.far = ctx->far.x;
ams_ctx.report_identifier = armGetSystemTick();

View file

@ -48,7 +48,7 @@ namespace ams::impl {
u64 module_base;
u32 pstate;
u32 afsr0;
u64 afsr1;
u32 afsr1;
u32 esr;
u64 far;
u64 report_identifier; /* Normally just system tick. */