Skip to content

Commit bfb058d

Browse files
committed
Merge in 'release/6.0' changes
2 parents 652d4d2 + ebaef9c commit bfb058d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/coreclr/pal/src/arch/arm64/context2.S

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,11 @@ LOCAL_LABEL(No_Restore_CONTEXT_INTEGER):
204204
ldr w17, [x16, CONTEXT_Cpsr]
205205
msr nzcv, x17
206206
ldp fp, lr, [x16, CONTEXT_Fp]
207-
ldr x17, [x16, CONTEXT_Sp]
208-
mov sp, x17
209-
ldr x17, [x16, CONTEXT_Pc]
207+
ldp x16, x17, [x16, CONTEXT_Sp] // Context_Pc is right after Context_Sp
208+
mov sp, x16
210209
br x17
211210

212211
LOCAL_LABEL(No_Restore_CONTEXT_CONTROL):
213-
ret
212+
ret
214213

215214
LEAF_END RtlRestoreContext, _TEXT

0 commit comments

Comments
 (0)