summaryrefslogtreecommitdiffstats
path: root/arch/riscv/Kconfig
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2018-10-23 02:39:08 +0200
committerPalmer Dabbelt <palmer@sifive.com>2018-10-23 02:39:08 +0200
commita6de21baf6373ac1ddd5c52e8fbd959f164ef9cf (patch)
treeb3071da1549139c260eb4db21728fc126f5f879f /arch/riscv/Kconfig
parentriscv: Add support to no-FPU systems (diff)
parentRISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap (diff)
downloadlinux-a6de21baf6373ac1ddd5c52e8fbd959f164ef9cf.tar.xz
linux-a6de21baf6373ac1ddd5c52e8fbd959f164ef9cf.zip
RISC-V: Fix some RV32 bugs and build failures
This patch set fixes up various failures in the RV32I port. The fixes are all nominally independent, but are really only testable together because the RV32I port fails to build without all of them. The patch set includes: * The removal of tishift on RV32I targets, as 128-bit integers are not supported by the toolchain. * The removal of swiotlb from RV32I targets, since all physical addresses can be mapped by all hardware on all existing RV32I targets. * The addition of ummodi3 and udivmoddi4 from an old version of GCC that was licensed under GPLv2 as generic code, along with their use on RV32I targets. * A fix to our page alignment logic within ioremap for RV32I targets. Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
Diffstat (limited to 'arch/riscv/Kconfig')
-rw-r--r--arch/riscv/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 4198759f6798..fe451348ae57 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -109,6 +109,7 @@ config ARCH_RV32I
select GENERIC_LIB_ASHRDI3
select GENERIC_LIB_LSHRDI3
select GENERIC_LIB_UCMPDI2
+ select GENERIC_LIB_UMODDI3
config ARCH_RV64I
bool "RV64I"