[PATCH] riscv: entry: Save a0 prior syscall_enter_from_user_mode()
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Tue Apr 11 10:40:19 PDT 2023
Hello:
This patch was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer at rivosinc.com>:
On Mon, 3 Apr 2023 08:52:07 +0200 you wrote:
> From: Björn Töpel <bjorn at rivosinc.com>
>
> The RISC-V calling convention passes the first argument, and the
> return value in the a0 register. For this reason, the a0 register
> needs some extra care; When handling syscalls, the a0 register is
> saved into regs->orig_a0, so a0 can be properly restored for,
> e.g. interrupted syscalls.
>
> [...]
Here is the summary with links:
- riscv: entry: Save a0 prior syscall_enter_from_user_mode()
https://git.kernel.org/riscv/c/9c2598d43510
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-riscv
mailing list