diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /xpcom/reflect/xptcall/md/unix/xptcstubs_asm_riscv64.S | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xpcom/reflect/xptcall/md/unix/xptcstubs_asm_riscv64.S')
-rw-r--r-- | xpcom/reflect/xptcall/md/unix/xptcstubs_asm_riscv64.S | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/xpcom/reflect/xptcall/md/unix/xptcstubs_asm_riscv64.S b/xpcom/reflect/xptcall/md/unix/xptcstubs_asm_riscv64.S new file mode 100644 index 0000000000..02bb812d59 --- /dev/null +++ b/xpcom/reflect/xptcall/md/unix/xptcstubs_asm_riscv64.S @@ -0,0 +1,53 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + + .set NGPREGS, 8 + .set NFPREGS, 8 + + .text + .globl SharedStub + .hidden SharedStub + .type SharedStub,@function + +SharedStub: + .cfi_startproc + mv t1, sp + addi sp, sp, -8*(NGPREGS+NFPREGS)-16 + .cfi_adjust_cfa_offset 8*(NGPREGS+NFPREGS)+16 + sd a0, 0(sp) + sd a1, 8(sp) + sd a2, 16(sp) + sd a3, 24(sp) + sd a4, 32(sp) + sd a5, 40(sp) + sd a6, 48(sp) + sd a7, 56(sp) + fsd fa0, 64(sp) + fsd fa1, 72(sp) + fsd fa2, 80(sp) + fsd fa3, 88(sp) + fsd fa4, 96(sp) + fsd fa5, 104(sp) + fsd fa6, 112(sp) + fsd fa7, 120(sp) + sd ra, 136(sp) + .cfi_rel_offset ra, 136 + + /* methodIndex is passed from stub */ + mv a1, t0 + mv a2, t1 + mv a3, sp + addi a4, sp, 8*NGPREGS + + call PrepareAndDispatch + + ld ra, 136(sp) + .cfi_restore ra + addi sp, sp, 8*(NGPREGS+NFPREGS)+16 + .cfi_adjust_cfa_offset -8*(NGPREGS+NFPREGS)-16 + ret + .cfi_endproc + + .size SharedStub, . - SharedStub + .section .note.GNU-stack, "", @progbits |