1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-26 08:22:38 +03:00
Files
glibc/sysdeps/unix/sysv/linux
Stefan Liebler e57d8fc97b S390: Always use svc 0
On s390x syscalls are triggered by svc instruction. One can
pass the syscall number encoded in the instruction "svc 123"
or by storing it in r1:
lghi r1,123
svc 0

If the syscall number is encoded in the instruction, this can
cause broken syscall restarts.  Therefore this patch is now just
passing the syscall number in r1.

See also kernel-commit:
"s390/signal: switch to using vdso for sigreturn and syscall restart"
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/s390/[%e2%80%a6]call.c?h=v6.0-rc1&id=df29a7440c4b5c65765c8f60396b3b13063e24e9

As information, the "svc 0" feature was introduced in kernel 2.5.62:
commit b5aad611393ef2e132e3648fa4c6e56a9cfa8708
2022-08-30 10:54:46 +02:00
..
2022-08-04 09:09:48 -03:00
2022-08-04 09:09:48 -03:00
2022-08-04 10:03:45 -03:00
2022-08-04 10:03:45 -03:00
2022-08-04 09:09:48 -03:00
2022-08-04 10:03:45 -03:00
2022-08-04 09:09:48 -03:00
2022-08-04 09:09:48 -03:00
2022-08-04 09:09:48 -03:00
2022-08-30 10:54:46 +02:00
2022-08-04 10:03:45 -03:00
2022-08-04 09:09:48 -03:00
2022-05-16 15:03:49 -03:00
2022-05-16 15:03:49 -03:00
2022-05-16 15:03:49 -03:00
2022-05-16 15:03:49 -03:00
2022-05-16 15:03:49 -03:00
2022-06-30 14:56:21 -03:00
2022-06-30 14:56:21 -03:00
2022-05-04 15:37:21 +02:00
2022-06-30 14:56:21 -03:00
2022-07-05 10:08:48 -03:00
2022-06-30 14:56:21 -03:00
2022-07-05 10:08:48 -03:00