aboutsummaryrefslogtreecommitdiff
path: root/socket/listen.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-02-01 05:44:55 -0800
committerH.J. Lu <hjl.tools@gmail.com>2020-02-01 05:44:55 -0800
commit15eab1e3e89129ab3ed03f5bdc3415b26e9caeb9 (patch)
treefa94bea918c6ce99212161143aa65683560e2e78 /socket/listen.c
parent635d6fae03257129b4672591b700a495cb6cb6c7 (diff)
downloadglibc-15eab1e3e89129ab3ed03f5bdc3415b26e9caeb9.tar
glibc-15eab1e3e89129ab3ed03f5bdc3415b26e9caeb9.tar.gz
glibc-15eab1e3e89129ab3ed03f5bdc3415b26e9caeb9.tar.bz2
glibc-15eab1e3e89129ab3ed03f5bdc3415b26e9caeb9.zip
i386: Don't unnecessarily save and restore EAX, ECX and EDX [BZ# 25262]
On i386, since EAX, ECX and EDX are caller-saved, there are no need to save and restore EAX, ECX and EDX in getcontext, setcontext and swapcontext. They just need to clear EAX on success. The extra scratch registers are needed to enable CET. Tested on i386. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'socket/listen.c')
0 files changed, 0 insertions, 0 deletions