[ARM] 2952/1: fix a register clobber list
authorNicolas Pitre <nico@cam.org>
Tue, 4 Oct 2005 22:17:53 +0000 (23:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 4 Oct 2005 22:17:53 +0000 (23:17 +0100)
Patch from Nicolas Pitre

If gcc decides to assign lr to %0 we're screwed.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/sys_arm.c

index 42629ff..ea569ba 100644 (file)
@@ -305,7 +305,7 @@ long execve(const char *filename, char **argv, char **envp)
                  "Ir" (THREAD_START_SP - sizeof(regs)),
                  "r" (&regs),
                  "Ir" (sizeof(regs))
-               : "r0", "r1", "r2", "r3", "ip", "memory");
+               : "r0", "r1", "r2", "r3", "ip", "lr", "memory");
 
  out:
        return ret;