[PATCH v2 3/4] riscv: uaccess: use 'asm goto' for put_user()

Charlie Jenkins charlie at rivosinc.com
Fri Jan 17 15:24:16 PST 2025


On Mon, Nov 18, 2024 at 11:01:11PM +0000, Cyril Bur wrote:
> From: Jisheng Zhang <jszhang at kernel.org>
> 
> 'asm goto' generates noticeably better code since we don't need to
> test the error etc, the exception just jumps to the error handling
> directly.
> 
> Signed-off-by: Jisheng Zhang <jszhang at kernel.org>
> Signed-off-by: Cyril Bur <cyrilbur at tenstorrent.com>

Reviewed-by: Charlie Jenkins <charlie at rivosinc.com>
Tested-by: Charlie Jenkins <charlie at rivosinc.com>




More information about the linux-riscv mailing list