Skip to content

Commit 494d4a0

Browse files
Austin KimPaul Walmsley
authored andcommitted
riscv: fix minor typo in syscall.h comment
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. Signed-off-by: Austin Kim <austin.kim@lge.com> Link: https://patch.msgid.link/aW3Z4zTBvGJpk7a7@adminpc-PowerEdge-R7525 Signed-off-by: Paul Walmsley <pjw@kernel.org>
1 parent ba89709 commit 494d4a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/include/asm/syscall.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ extern void * const sys_call_table[];
2020
extern void * const compat_sys_call_table[];
2121

2222
/*
23-
* Only the low 32 bits of orig_r0 are meaningful, so we return int.
23+
* Only the low 32 bits of orig_a0 are meaningful, so we return int.
2424
* This importantly ignores the high bits on 64-bit, so comparisons
2525
* sign-extend the low 32 bits.
2626
*/

0 commit comments

Comments
 (0)