missing_syscall: add riscv32 support

This commit is contained in:
Yu Watanabe
2021-06-15 19:07:36 +09:00
parent 18adce1566
commit fc75007b32
2 changed files with 142 additions and 35 deletions
+8 -2
View File
@@ -73,8 +73,14 @@ DEF_TEMPLATE_B = '''\
# endif
# elif defined(__powerpc__)
# define systemd_NR_{syscall} {nr_powerpc}
# elif defined(__riscv) && defined(__LP64__)
# define systemd_NR_{syscall} {nr_riscv64}
# elif defined(__riscv)
# if __riscv_xlen == 32
# define systemd_NR_{syscall} {nr_riscv32}
# elif __riscv_xlen == 64
# define systemd_NR_{syscall} {nr_riscv64}
# else
# error "Unknown RISC-V ABI"
# endif
# elif defined(__s390__)
# define systemd_NR_{syscall} {nr_s390}
# elif defined(__sparc__)