Skip to content

Commit

Permalink
Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
t-mustafin committed Jun 24, 2024
1 parent 91a0ce1 commit 3599429
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/coreclr/pal/src/arch/riscv64/context2.S
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ LOCAL_LABEL(No_Restore_CONTEXT_INTEGER):
sd t1, -8(fp)
ld fp, (CONTEXT_Fp)(t4)
ld t1, (CONTEXT_Pc)(t4) // Since we cannot control $pc directly, we're going to corrupt t1
ld sp, (CONTEXT_Sp)(t4)
ld t4, -8(sp)
ld t4, (CONTEXT_Sp)(t4)
addi sp, t4, -8
ld t4, (sp)
addi sp, sp, 8
jr t1

LOCAL_LABEL(No_Restore_CONTEXT_CONTROL):
Expand Down

0 comments on commit 3599429

Please sign in to comment.