riscv: Get cache information through sysconf
commit15b38ffc104a30f5c02ed33c5983923d5ceae5f8
authorZong Li <zong.li@sifive.com>
Thu, 29 Oct 2020 17:33:38 +0000 (30 01:33 +0800)
committerDJ Delorie <dj@redhat.com>
Tue, 10 Nov 2020 19:43:49 +0000 (10 14:43 -0500)
tree45d256b458343fdce1474935f20ea7405142712e
parent1f67f23fdf2ad5c4fa26525f0cd74aba7ebf3375
riscv: Get cache information through sysconf

Add support to query cache information on RISC-V through sysconf()
function. The cache information had been added in AUX vector of RISC-V
architecture in Linux kernel v.5.10-rc1.
Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
Acked-by: Palmer Dabbelt <palmerdabbelt@google.com>
sysdeps/unix/sysv/linux/riscv/sysconf.c [new file with mode: 0644]