]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Use scv instruction on clone when available
authorMatheus Castanho <msc@linux.ibm.com>
Thu, 3 Dec 2020 17:15:28 +0000 (14:15 -0300)
committerTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
Wed, 30 Dec 2020 21:26:33 +0000 (18:26 -0300)
commit41f013cef24884604c303435dd1915be2ea5c0e0
treeecbca383796ba7121e14a33f91ec6a5060d5a34d
parent68ab82f56690ada86ac1e0c46bad06ba189a10ef
powerpc: Use scv instruction on clone when available

clone already uses r31 to temporarily save input arguments before doing the
syscall, so we use a different register to read from the TCB. We can also avoid
allocating another stack frame, which is not needed since we can simply extend
the usage of the red zone.

Tested-by: Lucas A. M. Magalhães <lamm@linux.ibm.com>
Reviewed-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S