diff options
| author | Radim Krčmář <rkrcmar@ventanamicro.com> | 2026-10-05 19:02:54 -0600 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-10-05 19:02:54 -0600 |
| commit | eb44ccd82991202c4c98fc519a2043bbe08a286f (patch) | |
| tree | 0844f80a75ec99852e11aa1712e03813ca0728a6 /include/linux/workqueue_api.h | |
| parent | 5e15d0342d3cfb15d5527d8eefa58c2f72d5d541 (diff) | |
RISC-V: sbi: turn sbi_ecall into variadic macro
The SBI ecall interface has 0~6 arguments in a0~a5, and undefined
arguments are not reserved, so we don't have to zero the registers.
The current sbi_ecall forces programmers to pad the argument count,
which makes it hard to distinguish what is a value 0, and what is the
padding, because 0 was traditionally used for padding as well.
Turn sbi_ecall into a variadic macro that accepts 2~8 arguments, and
where only the specified arguments get passed to the ecall instruction.
The register a1 is zeroed if unused, to prevent unnecessary leaks of
kernel register state from the tracepoints.
Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com>
Link: https://patch.msgid.link/20250619190315.2603194-2-rkrcmar@ventanamicro.com
Cc: Radim Krčmář <rkrcmar@qti.qualcomm.com>
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
