Explorar o código

[POWERPC] kernel_execve is identical in 32 and 64 bit

so consolidate it into misc.S.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Stephen Rothwell %!s(int64=17) %!d(string=hai) anos
pai
achega
94b146ceee

+ 8 - 0
arch/powerpc/kernel/misc.S

@@ -14,6 +14,7 @@
  * 2 of the License, or (at your option) any later version.
  * 2 of the License, or (at your option) any later version.
  */
  */
 #include <asm/ppc_asm.h>
 #include <asm/ppc_asm.h>
+#include <asm/unistd.h>
 
 
 	.text
 	.text
 
 
@@ -43,3 +44,10 @@ _GLOBAL(add_reloc_offset)
 	add	r3,r3,r5
 	add	r3,r3,r5
 	mtlr	r0
 	mtlr	r0
 	blr
 	blr
+
+_GLOBAL(kernel_execve)
+	li	r0,__NR_execve
+	sc
+	bnslr
+	neg	r3,r3
+	blr

+ 0 - 7
arch/powerpc/kernel/misc_32.S

@@ -793,13 +793,6 @@ _GLOBAL(kernel_thread)
 	addi	r1,r1,16
 	addi	r1,r1,16
 	blr
 	blr
 
 
-_GLOBAL(kernel_execve)
-	li	r0,__NR_execve
-	sc
-	bnslr
-	neg	r3,r3
-	blr
-
 /*
 /*
  * This routine is just here to keep GCC happy - sigh...
  * This routine is just here to keep GCC happy - sigh...
  */
  */

+ 0 - 7
arch/powerpc/kernel/misc_64.S

@@ -518,13 +518,6 @@ _GLOBAL(giveup_altivec)
 
 
 #endif /* CONFIG_ALTIVEC */
 #endif /* CONFIG_ALTIVEC */
 
 
-_GLOBAL(kernel_execve)
-	li	r0,__NR_execve
-	sc
-	bnslr
-	neg	r3,r3
-	blr
-
 /* kexec_wait(phys_cpu)
 /* kexec_wait(phys_cpu)
  *
  *
  * wait for the flag to change, indicating this kernel is going away but
  * wait for the flag to change, indicating this kernel is going away but