riscv: fix minor typo in syscall.h comment
PATCH 1/1 riscv: fix minor typo in syscall.h comment
From: Austin Kim <[email protected]>
Some developers may be confused because RISC-V does not have a register named r0. Also, orig_r0 is not available in pt_regs structure, which is specific to riscv. So we had better fix this minor typo.
--- arch/riscv/include/asm/syscall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/include/asm/syscall.h +1 -1
@@ -20,7 +20,7 @@ extern void * const sys_call_table[];extern void *const compat_sys_call_table[];/* -* Only the low 32 bits of orig_r0 are meaningful, so we return int. +* Only the low 32 bits of orig_a0 are meaningful, so we return int. * This importantly ignores the high bits on 64-bit, so comparisons * sign-extend the low 32 bits. */
Signature · 7 lines
2.34.1 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Paul Walmsley
maintainerQuoted 7 lines · Austin Kim
From: Austin Kim <[email protected]>
Some developers may be confused because RISC-V does not have a register named r0. Also,
orig_r0is not available inpt_regsstructure, which is specific to riscv. So we had better fix this minor typo.Signed-off-by Austin Kim <[email protected]>
Thanks, queued for v6.20.
- Paul
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
2026년 1월 24일 (토) PM 4:55, Paul Walmsley <[email protected]>님이 작성:
Quoted 12 lines · Austin Kim
Quoted 8 lines
From: Austin Kim <[email protected]>
Some developers may be confused because RISC-V does not have a register named r0. Also,
orig_r0is not available inpt_regsstructure, which is specific to riscv. So we had better fix this minor typo.Signed-off-by Austin Kim <[email protected]>Thanks, queued for v6.20.
Great! Thank you again.
BR,
Austin Kim
Quoted 3 lines
- Paul