riscv: Add Linux hwprobe syscall support
commit426d0e1aa8f17426d13707594111df712d2b8911
authorEvan Green <evan@rivosinc.com>
Tue, 27 Feb 2024 22:56:37 +0000 (27 14:56 -0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Fri, 1 Mar 2024 15:14:55 +0000 (1 07:14 -0800)
tree6cb5b902a811828fa8e6dde2c114a14f8726728f
parent71648e80042658f23965924616fb7db9c2fccff9
riscv: Add Linux hwprobe syscall support

Add awareness and a thin wrapper function around a new Linux system call
that allows callers to get architecture and microarchitecture
information about the CPUs from the kernel. This can be used to
do things like dynamically choose a memcpy implementation.

Signed-off-by: Evan Green <evan@rivosinc.com>
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
sysdeps/unix/sysv/linux/riscv/Makefile
sysdeps/unix/sysv/linux/riscv/Versions
sysdeps/unix/sysv/linux/riscv/hwprobe.c [new file with mode: 0644]
sysdeps/unix/sysv/linux/riscv/rv32/libc.abilist
sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist
sysdeps/unix/sysv/linux/riscv/sys/hwprobe.h [new file with mode: 0644]