mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
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>
27 lines
720 B
Makefile
27 lines
720 B
Makefile
ifeq ($(subdir),misc)
|
|
sysdep_headers += \
|
|
sys/cachectl.h \
|
|
sys/hwprobe.h \
|
|
# sysdep_headers
|
|
|
|
sysdep_routines += \
|
|
flush-icache \
|
|
hwprobe \
|
|
# sysdep_routines
|
|
|
|
endif
|
|
|
|
ifeq ($(subdir),stdlib)
|
|
gen-as-const-headers += ucontext_i.sym
|
|
endif
|
|
|
|
abi-variants := ilp32 ilp32d lp64 lp64d
|
|
|
|
ifeq (,$(filter $(default-abi),$(abi-variants)))
|
|
$(error Unknown ABI $(default-abi), must be one of $(abi-variants))
|
|
endif
|
|
|
|
abi-ilp32-condition := __WORDSIZE == 32 && defined __riscv_float_abi_soft
|
|
abi-ilp32d-condition := __WORDSIZE == 32 && defined __riscv_float_abi_double
|
|
abi-lp64-condition := __WORDSIZE == 64 && defined __riscv_float_abi_soft
|
|
abi-lp64d-condition := __WORDSIZE == 64 && defined __riscv_float_abi_double
|