We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98e7570 commit ead0d10Copy full SHA for ead0d10
src/coreclr/pal/src/arch/riscv64/context2.S
@@ -105,10 +105,15 @@ LOCAL_LABEL(No_Restore_CONTEXT_INTEGER):
105
beqz t1, LOCAL_LABEL(No_Restore_CONTEXT_CONTROL)
106
107
ld ra, (CONTEXT_Ra)(t4)
108
+ ld t1, (CONTEXT_T4)(t4)
109
+ ld fp, (CONTEXT_Sp)(t4)
110
+ sd t1, -8(fp)
111
ld fp, (CONTEXT_Fp)(t4)
- ld sp, (CONTEXT_Sp)(t4)
112
ld t1, (CONTEXT_Pc)(t4) // Since we cannot control $pc directly, we're going to corrupt t1
- ld t4, (CONTEXT_T4)(t4)
113
+ ld t4, (CONTEXT_Sp)(t4)
114
+ addi sp, t4, -8
115
+ ld t4, (sp)
116
+ addi sp, sp, 8
117
jr t1
118
119
LOCAL_LABEL(No_Restore_CONTEXT_CONTROL):
0 commit comments