]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/kernel/misc.S
[POWERPC] kernel_execve is identical in 32 and 64 bit
[linux-2.6-omap-h63xx.git] / arch / powerpc / kernel / misc.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