[PATCH v2 4/4] riscv: uaccess: use 'asm goto output' for get_user
Charlie Jenkins
charlie at rivosinc.com
Fri Jan 17 15:24:55 PST 2025
On Mon, Nov 18, 2024 at 11:01:12PM +0000, Cyril Bur wrote:
> From: Jisheng Zhang <jszhang at kernel.org>
>
> 'asm goto output' 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