diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-11-28 01:13:02 +0100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-11 03:34:39 +0100 |
commit | 94b146ceeee18b801ad65ea78ec02449398e8221 (patch) | |
tree | fd7f40ec355888a3373df06cb442cd2505abecb4 /arch/powerpc/kernel/misc.S | |
parent | [POWERPC] Add for_each_child_of_node() helper for iterating over child nodes (diff) | |
download | linux-94b146ceeee18b801ad65ea78ec02449398e8221.tar.xz linux-94b146ceeee18b801ad65ea78ec02449398e8221.zip |
[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>
Diffstat (limited to 'arch/powerpc/kernel/misc.S')
-rw-r--r-- | arch/powerpc/kernel/misc.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/misc.S b/arch/powerpc/kernel/misc.S index 330c9dc7db86..74ce0c7a7b1e 100644 --- a/arch/powerpc/kernel/misc.S +++ b/arch/powerpc/kernel/misc.S @@ -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 |