glibc/sysdeps/riscv
Peter Bergner 47975914fb riscv: Add vector registers to __SYSCALL_CLOBBERS
The Linux kernel ABI specifies that the vector registers are not preserved
across system calls, but the __SYSCALL_CLOBBERS macro doesn't mention them.
This could possibly lead to compilers trying to keep data in the vector
registers across the syscall leading to corruption.  Add the vector registers
to __SYSCALL_CLOBBERS when the vector extension is enabled.  If the vector
extension is enabled, then require GCC 15 or later and RVV 1.0 or later.

Fixes: 36960f0c76 ("RISC-V: Linux Syscall Interface")

Signed-off-by: Peter Bergner <bergner@tenstorrent.com>
2025-11-04 09:18:56 -06:00
..
bits
multiarch riscv: memcpy_noalignment: Reorder to store via a3, then bump a3 2025-10-30 17:49:21 -05:00
nofpu
nptl
rv32
rv64
rvd
rvf
sys
Implies
Makefile
__longjmp.S
atomic-machine.h nptl: Remove ATOMIC_EXCHANGE_USES_CAS usage 2025-11-04 04:14:01 -03:00
bsd-_setjmp.c
bsd-setjmp.c
configure
configure.ac
dl-irel.h
dl-link.sym
dl-machine.h
dl-relocate-ld.h
dl-tls.h
dl-trampoline.S
e_sqrtl.c
fpu_control.h
gccframe.h
jmpbuf-offsets.h
jmpbuf-unwind.h
ldsodefs.h
libc-tls.c
linkmap.h
machine-gmon.h
math-tests-snan-payload.h
math-tests-trap.h
math-use-builtins-ffs.h
preconfigure riscv: Add vector registers to __SYSCALL_CLOBBERS 2025-11-04 09:18:56 -06:00
preconfigure.ac riscv: Add vector registers to __SYSCALL_CLOBBERS 2025-11-04 09:18:56 -06:00
riscv-ifunc.h
setjmp.S
sfp-machine.h
sotruss-lib.c
start.S
string-fza.h
string-fzi.h
string-misc.h riscv: Add Zbkb optimized repeat_bytes helper 2025-10-31 16:23:57 -05:00
thread_pointer.h
tininess.h
tst-audit.h
utmp-size.h