mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-27 21:42:49 +02:00
kern: automatic PC alignment on ERET is implementation defined
This commit is contained in:
parent
911a81430a
commit
8019804c7f
@ -70,7 +70,7 @@ namespace ams::kern::arch::arm64 {
|
||||
std::memset(ctx, 0, sizeof(*ctx));
|
||||
|
||||
/* Set PC and argument. */
|
||||
ctx->pc = GetInteger(pc);
|
||||
ctx->pc = GetInteger(pc) & ~(UINT64_C(1));
|
||||
ctx->x[0] = arg;
|
||||
|
||||
/* Set PSR. */
|
||||
|
Loading…
Reference in New Issue
Block a user