Files
erofs-linux/arch/riscv/lib
Dmitry Antipov a354b8de9a riscv: add platform-specific double word shifts for riscv32
Add riscv32-specific '__ashldi3()', '__ashrdi3()', and '__lshrdi3()'. 
Initially it was intended to fix the following link error observed when
building EFI-enabled kernel with CONFIG_EFI_STUB=y and
CONFIG_EFI_GENERIC_STUB=y:

riscv32-linux-gnu-ld: ./drivers/firmware/efi/libstub/lib-cmdline.stub.o: in function `__efistub_.L49':
__efistub_cmdline.c:(.init.text+0x1f2): undefined reference to `__efistub___ashldi3'
riscv32-linux-gnu-ld: __efistub_cmdline.c:(.init.text+0x202): undefined reference to `__efistub___lshrdi3'

Reported at [1] trying to build
https://patchew.org/linux/[email protected],
tested with 'qemu-system-riscv32 -M virt' only.

Link: https://lore.kernel.org/[email protected]
Signed-off-by: Dmitry Antipov <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected] [1]
Suggested-by: Ard Biesheuvel <[email protected]>
Tested-by: Charlie Jenkins <[email protected]>
Assisted-by: Gemini:gemini-3.1-pro-preview sashiko
Cc: Albert Ou <[email protected]>
Cc: Alexandre Ghiti <[email protected]>
Cc: Andriy Shevchenko <[email protected]>
Cc: Palmer Dabbelt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
2026-05-28 21:24:51 -07:00
..
…
…
…
…
…
…
…