From fec82988e77c9de130d01c59b474e10fa21261cc Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 9 Sep 2019 10:50:11 +0200 Subject: [PATCH] syscall.2: Update name of syscall instruction for riscv As reported by Florin: In the first table, for the riscv Arch/ABI, the instruction should be ecall instead of scall. According the official manual, the instruction has been renamed. https://content.riscv.org/wp-content/uploads/2017/05/riscv-spec-v2.2.pdf "The SCALL and SBREAK instructions have been renamed to ECALL and EBREAK, respectively. Their encoding and functionality are unchanged." Reported-by: Florin Blanaru Reviewed-by: Adam Borowski Signed-off-by: Michael Kerrisk --- man2/syscall.2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man2/syscall.2 b/man2/syscall.2 index 77e6bccdd..33e5ea655 100644 --- a/man2/syscall.2 +++ b/man2/syscall.2 @@ -196,7 +196,7 @@ mips syscall v0 v0 v1 a3 1, 6 nios2 trap r2 r2 - r7 parisc ble 0x100(%sr2, %r0) r20 r28 - - powerpc sc r0 r3 - r0 1 -riscv scall a7 a0 a1 - +riscv ecall a7 a0 a1 - s390 svc 0 r1 r2 r3 - 3 s390x svc 0 r1 r2 r3 - 3 superh trap #0x17 r3 r0 r1 - 4, 6