diff options
| author | 2025-07-23 20:47:29 +0100 | |
|---|---|---|
| committer | 2025-09-18 08:20:25 -0600 | |
| commit | cc2294d3f9c99c216ef563b83b08d2c0604f9b92 (patch) | |
| tree | e53a7b573197b966eb28935c6330cb2f287dbb54 /include/uapi/linux/android/ssh:/git@git.zx2c4.com | |
| parent | riscv: mmap(): use unsigned offset type in riscv_sys_mmap (diff) | |
riscv: introduce asm/swab.h
Implement endianness swap macros for RISC-V.
Use the rev8 instruction when Zbb is available. Otherwise, rely on the
default mask-and-shift implementation.
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Tested-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Signed-off-by: Ignacio Encinas <ignacio@iencinas.com>
Link: https://lore.kernel.org/r/20250723-riscv-swab-v6-1-fc11e9a2efc9@iencinas.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'include/uapi/linux/android/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
