From: Nicolas Pitre Date: Tue, 4 Oct 2005 22:17:53 +0000 (+0100) Subject: [ARM] 2952/1: fix a register clobber list X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c2f480869fa7559fa3532e415e3e3ec49339f208;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [ARM] 2952/1: fix a register clobber list Patch from Nicolas Pitre If gcc decides to assign lr to %0 we're screwed. Signed-off-by: Nicolas Pitre Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index 42629ff84f5..ea569ba482b 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c @@ -305,7 +305,7 @@ long execve(const char *filename, char **argv, char **envp) "Ir" (THREAD_START_SP - sizeof(regs)), "r" (®s), "Ir" (sizeof(regs)) - : "r0", "r1", "r2", "r3", "ip", "memory"); + : "r0", "r1", "r2", "r3", "ip", "lr", "memory"); out: return ret;