arm: add RESET_PID in the clone impl
commita85df93f5542c04c884b69fcc1febcff6c2e7a39
authorWang Yufen <wangyufen@huawei.com>
Fri, 5 Sep 2014 07:19:21 +0000 (5 15:19 +0800)
committerWaldemar Brodkorb <wbx@openadk.org>
Sat, 6 Dec 2014 14:11:14 +0000 (6 08:11 -0600)
tree286ff04208a4b57338f3458b3c945c622c1fb4cc
parent6a528e846bc4bf773e7c19d298cfc30e8b50ca99
arm: add RESET_PID in the clone impl

Called getpid() When creating a new process with clone(), getpid() returns
the father_process's value. It should be child_process's value.
The reason is missing a RESET_PID in the arm clone impl.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
libc/sysdeps/linux/arm/clone.S
libc/sysdeps/linux/arm/sysdep.h