android_kernel_motorola_sm6225/arch/openrisc
Stafford Horne 11805b60e2 openrisc: Fix issue with argument clobbering for clone/fork
[ Upstream commit 6bd140e14d9aaa734ec37985b8b20a96c0ece948 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-25 15:33:01 +02:00
..
boot/dts DeviceTree for 4.15: 2017-11-14 18:25:40 -08:00
configs openrisc: add simple_smp dts and defconfig for simulators 2017-11-03 14:01:15 +09:00
include arch/openrisc: Fix issues with access_ok() 2020-06-22 09:04:59 +02:00
kernel openrisc: Fix issue with argument clobbering for clone/fork 2020-06-25 15:33:01 +02:00
lib OpenRISC updates for v4.15 2017-11-13 12:12:00 -08:00
mm mm: convert return type of handle_mm_fault() caller to vm_fault_t 2018-08-17 16:20:28 -07:00
Kconfig OpenRISC updates for 4.19 2018-08-23 14:09:37 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile kbuild: remove redundant LDFLAGS clearing in arch/*/Makefile 2018-07-19 08:40:27 +09:00