openrisc: Fix issue with argument clobbering for clone/fork
authorStafford Horne <shorne@gmail.com>
Wed, 22 Apr 2020 11:24:11 +0000 (20:24 +0900)
committerStafford Horne <shorne@gmail.com>
Sun, 31 May 2020 21:15:32 +0000 (06:15 +0900)
commit6bd140e14d9aaa734ec37985b8b20a96c0ece948
tree314bfb59ef74d6fc826c86108954e5893415a537
parentae83d0b416db002fe95601e7f97f64b59514d936
openrisc: Fix issue with argument clobbering for clone/fork

Working on the OpenRISC glibc port I found that sometimes clone was
working strange.  That the tls data argument sent in r7 was always
wrong.  Further investigation revealed that the arguments were getting
clobbered in the entry code.  This patch removes the code that writes to
the argument registers.  This was likely due to some old code hanging
around.

This patch fixes this up for clone and fork.  This fork clobber is
harmless but also useless so remove.

Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/entry.S