]> err.no Git - linux-2.6/commitdiff
[POWERPC] kernel_execve is identical in 32 and 64 bit
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 28 Nov 2007 00:13:02 +0000 (11:13 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 11 Dec 2007 02:34:39 +0000 (13:34 +1100)
so consolidate it into misc.S.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/misc.S
arch/powerpc/kernel/misc_32.S
arch/powerpc/kernel/misc_64.S

index 330c9dc7db8615f517863a5de438ad1623abe566..74ce0c7a7b1e7f481828f451ef478719d611c0b8 100644 (file)
@@ -14,6 +14,7 @@
  * 2 of the License, or (at your option) any later version.
  */
 #include <asm/ppc_asm.h>
+#include <asm/unistd.h>
 
        .text
 
@@ -43,3 +44,10 @@ _GLOBAL(add_reloc_offset)
        add     r3,r3,r5
        mtlr    r0
        blr
+
+_GLOBAL(kernel_execve)
+       li      r0,__NR_execve
+       sc
+       bnslr
+       neg     r3,r3
+       blr
index 8b642ab26d3767c23205125b1022dcad45964efd..ea1137851a4adc4a6ae7adfcba8aa74ed303340c 100644 (file)
@@ -793,13 +793,6 @@ _GLOBAL(kernel_thread)
        addi    r1,r1,16
        blr
 
-_GLOBAL(kernel_execve)
-       li      r0,__NR_execve
-       sc
-       bnslr
-       neg     r3,r3
-       blr
-
 /*
  * This routine is just here to keep GCC happy - sigh...
  */
index bbb3ba54c51c7b331c7ce2469361b4991a02cd1e..a3c491e88a72853a34b56121d31818002aeee882 100644 (file)
@@ -518,13 +518,6 @@ _GLOBAL(giveup_altivec)
 
 #endif /* CONFIG_ALTIVEC */
 
-_GLOBAL(kernel_execve)
-       li      r0,__NR_execve
-       sc
-       bnslr
-       neg     r3,r3
-       blr
-
 /* kexec_wait(phys_cpu)
  *
  * wait for the flag to change, indicating this kernel is going away but