[PATCH v3 0/3] riscv32 library enhancements and build fixes
Dmitry Antipov
dmantipov at yandex.ru
Mon Apr 13 02:21:59 PDT 2026
This series should immediately follow v8 of lib and lib/cmdline enhancements,
see https://patchew.org/linux/20260212164413.889625-1-dmantipov@yandex.ru.
Started from riscv32 build quirk, now it aims to provide platform-specific
double-word shifts and corresponding KUnit test (tested on ARM as well).
Dmitry Antipov (3):
riscv: add platform-specific double word shifts for riscv32
lib: kunit: add tests for __ashldi3(), __ashrdi3(), and __lshrdi3()
riscv: fix building compressed EFI image
arch/riscv/Kconfig | 3 -
arch/riscv/kernel/image-vars.h | 7 ++
arch/riscv/lib/Makefile | 1 +
arch/riscv/lib/ashldi3.S | 36 ++++++
arch/riscv/lib/ashrdi3.S | 37 ++++++
arch/riscv/lib/lshrdi3.S | 36 ++++++
drivers/firmware/efi/libstub/Makefile | 2 +-
lib/Kconfig.debug | 10 ++
lib/tests/Makefile | 1 +
lib/tests/shdi3_kunit.c | 175 ++++++++++++++++++++++++++
10 files changed, 304 insertions(+), 4 deletions(-)
create mode 100644 arch/riscv/lib/ashldi3.S
create mode 100644 arch/riscv/lib/ashrdi3.S
create mode 100644 arch/riscv/lib/lshrdi3.S
create mode 100644 lib/tests/shdi3_kunit.c
--
2.53.0
More information about the linux-riscv
mailing list