microblaze: Add TLS support to sys_clone
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Fri, 24 Feb 2012 04:52:26 +0000 (14:52 +1000)
committerMichal Simek <monstr@monstr.eu>
Fri, 25 May 2012 04:40:23 +0000 (06:40 +0200)
commit8d95e1224afa22e7881fc823849342b5602d736e
tree20663d437e1df665ed06ebb934801fb0405c2c06
parentd65987a88dc8b182ef933edf93c23cf4233dd8d5
microblaze: Add TLS support to sys_clone

Formerly unused Args 4/5 now load parent tid / child tid so the brid to
do_fork can pick up TLS from r10. Arg 3 still unused

There is also necessary to fix old glibc which do not setup r9/r10 (arg 4/5).
Simple clearing them is fine.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: David Holsgrove <david.holsgrove@petalogix.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/entry.S