summaryrefslogtreecommitdiffstats
path: root/Python/asm_trampoline.S
diff options
context:
space:
mode:
Diffstat (limited to 'Python/asm_trampoline.S')
-rw-r--r--Python/asm_trampoline.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/asm_trampoline.S b/Python/asm_trampoline.S
index 4607077..0a3265d 100644
--- a/Python/asm_trampoline.S
+++ b/Python/asm_trampoline.S
@@ -23,6 +23,14 @@ _Py_trampoline_func_start:
ldp x29, x30, [sp], 16
ret
#endif
+#ifdef __riscv
+ addi sp,sp,-16
+ sd ra,8(sp)
+ jalr a3
+ ld ra,8(sp)
+ addi sp,sp,16
+ jr ra
+#endif
.globl _Py_trampoline_func_end
_Py_trampoline_func_end:
.section .note.GNU-stack,"",@progbits