]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
syscall.2: Update name of syscall instruction for riscv
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 9 Sep 2019 08:50:11 +0000 (10:50 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 10 Sep 2019 10:45:14 +0000 (12:45 +0200)
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 <florin.blanaru96@gmail.com>
Reviewed-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/syscall.2

index 77e6bccddd5077e513abf6706d7e3fb02dbf32f1..33e5ea655821f8d0c9cd6661dc28b3a2a3ea45a4 100644 (file)
@@ -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