ARM: start_thread(): don't always clear all regs
authorNicolas Pitre <nicolas.pitre@linaro.org>
Fri, 28 Jul 2017 22:48:48 +0000 (18:48 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Sun, 10 Sep 2017 23:31:46 +0000 (19:31 -0400)
commit5e5881143297c97207486349ec1cf9fd833b1510
tree539dcbb787d1f4435dd9e452b652c649eff199c0
parente71fd63127c5a1d4fb7660f5d4cbc257374a2af9
ARM: start_thread(): don't always clear all regs

The elf_fdpic binary format driver has to initialize extra registers
beside the stack and program counter as required by the corresponding
ABI. So reinstate them after the regs structure has been cleared.

While at it let's get rid of start_thread_nommu().

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Mickael GUENE <mickael.guene@st.com>
Tested-by: Vincent Abriou <vincent.abriou@st.com>
Tested-by: Andras Szemzo <szemzo.andras@gmail.com>
arch/arm/include/asm/processor.h