]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sparc: fixup for conversion to generic execve
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 16 Oct 2012 03:43:51 +0000 (14:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 16 Oct 2012 03:47:15 +0000 (14:47 +1100)
Fixes these errors:

arch/sparc/kernel/head_64.o: In function `sys64_execve':
(.text+0x1f58): relocation truncated to fit: R_SPARC_WDISP19 against symbol `sys_execve' defined in .text section in fs/built-in.o
arch/sparc/kernel/head_64.o: In function `sys32_execve':
(.text+0x1f64): relocation truncated to fit: R_SPARC_WDISP19 against symbol `compat_sys_execve' defined in .text section in fs/built-in.o

Dictated-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/sparc/kernel/syscalls.S

index 4bae09677b4804fe81ebe6846535d833d5aeb137..f667cdfd0d4ad7dcfa1bc789703febd1e2f8f1c0 100644 (file)
@@ -2,15 +2,19 @@
         * environment settings are the same as the calling processes.
         */
 sys64_execve:
-       ba,pt   %xcc,sys_execve
-        flushw
+       flushw
+       mov     %o7, %l5
+       call    sys_execve
+        mov    %l5, %o7
 
 #ifdef CONFIG_COMPAT
 sunos_execv:
        mov     %g0, %o2
 sys32_execve:
-       ba,pt   %xcc,compat_sys_execve
-        flushw
+       flushw
+       mov     %o7, %l5
+       call    compat_sys_execve
+        mov    %l5, %o7
 #endif
 
        .align  32