diff options
author | Evan Green <evan@rivosinc.com> | 2024-02-27 14:56:37 -0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-03-01 07:14:55 -0800 |
commit | 426d0e1aa8f17426d13707594111df712d2b8911 (patch) | |
tree | 6cb5b902a811828fa8e6dde2c114a14f8726728f /sysdeps/unix/sysv/linux/riscv/Makefile | |
parent | 71648e80042658f23965924616fb7db9c2fccff9 (diff) | |
download | glibc-426d0e1aa8f17426d13707594111df712d2b8911.tar.gz glibc-426d0e1aa8f17426d13707594111df712d2b8911.tar.xz glibc-426d0e1aa8f17426d13707594111df712d2b8911.zip |
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv/Makefile')
-rw-r--r-- | sysdeps/unix/sysv/linux/riscv/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/Makefile b/sysdeps/unix/sysv/linux/riscv/Makefile index 4b6eacb32f..04abf226ad 100644 --- a/sysdeps/unix/sysv/linux/riscv/Makefile +++ b/sysdeps/unix/sysv/linux/riscv/Makefile @@ -1,6 +1,14 @@ ifeq ($(subdir),misc) -sysdep_headers += sys/cachectl.h -sysdep_routines += flush-icache +sysdep_headers += \ + sys/cachectl.h \ + sys/hwprobe.h \ + # sysdep_headers + +sysdep_routines += \ + flush-icache \ + hwprobe \ + # sysdep_routines + endif ifeq ($(subdir),stdlib) |