aboutsummaryrefslogtreecommitdiff
path: root/tools/arch/loongarch/vdso
AgeCommit message (Collapse)AuthorFilesLines
2024-10-08selftests: vDSO: unconditionally build chacha testJason A. Donenfeld1-1/+0
Rather than using symlinks to find the vgetrandom-chacha.S file for each arch, store this in a file that uses the compiler to determine architecture, and then make use of weak symbols to skip the test on architectures that don't provide the code. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2024-09-13LoongArch: vDSO: Wire up getrandom() vDSO implementationXi Ruoyao1-0/+1
Hook up the generic vDSO implementation to the LoongArch vDSO data page by providing the required __arch_chacha20_blocks_nostack, __arch_get_k_vdso_rng_data, and getrandom_syscall implementations. Also wire up the selftests. Signed-off-by: Xi Ruoyao <xry111@xry111.site> Acked-by: Huacai Chen <chenhuacai@kernel.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>