1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-05-05 20:19:19 +03:00
Evan Green 426d0e1aa8
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>
2024-03-01 07:14:55 -08:00

15 lines
184 B
Plaintext

ld {
GLIBC_PRIVATE {
# used for loading by static libraries
_dl_var_init;
}
}
libc {
GLIBC_2.27 {
__riscv_flush_icache;
}
GLIBC_2.40 {
__riscv_hwprobe;
}
}