Debian Codegraph @

sys-elf_riscv64.S

raw
1 /*
2 * libhugetlbfs - direct system call for riscv64
3 *
4 * Author(s): Alexandre Ghiti
5 */
6 .text
7
8 .globl direct_syscall
9 direct_syscall:
10 mv a7, a0
11 mv a0, a1
12 mv a1, a2
13 mv a2, a3
14 mv a3, a4
15 ecall
16 ret
17
18 #if defined(__linux__) && defined(__ELF__)
19 .section .note.GNU-stack,"",%progbits
20 #endif