]> sourceware.org Git - glibc.git/commit
s390: optimize syscall function
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 19 Jun 2017 08:59:40 +0000 (10:59 +0200)
committerStefan Liebler <stli@linux.vnet.ibm.com>
Mon, 19 Jun 2017 08:59:40 +0000 (10:59 +0200)
commit35810f5ccf735d8df0a783bc6ed5fbe455e64876
treeac4dbf1066e2d624fe5bd52bce2c2ebda11fb951
parent52243b520e2d336431ea410ef3aa1f766642f1d2
s390: optimize syscall function

Since kernel 2.6.0 all Linux version accept the system call number
in register 1 for svc 0. There is no need to have special handling
that uses EX for system calls < 256. This will simplify and speed
up that code.

A microbenchmark doing "syscall(__NR_getpid);" in a loops gets faster
by ~12%.

        * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Simplify
        code by always using SVC 0 instead of EX.
        * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
ChangeLog
sysdeps/unix/sysv/linux/s390/s390-32/syscall.S
sysdeps/unix/sysv/linux/s390/s390-64/syscall.S
This page took 0.04207 seconds and 5 git commands to generate.