Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 51858aaf authored by Zong Li's avatar Zong Li Committed by Palmer Dabbelt
Browse files

RISC-V: Use swiotlb on RV64 only



Only RV64 supports swiotlb. On RV32, it don't select the SWIOTLB.

Signed-off-by: default avatarZong Li <zong@andestech.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent 7f47c73b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -227,7 +227,10 @@ void __init setup_arch(char **cmdline_p)
	setup_bootmem();
	paging_init();
	unflatten_device_tree();

#ifdef CONFIG_SWIOTLB
	swiotlb_init(1);
#endif

#ifdef CONFIG_SMP
	setup_smp();