diff options
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 @@ | |||
14 | * 2 of the License, or (at your option) any later version. | 14 | * 2 of the License, or (at your option) any later version. |
15 | */ | 15 | */ |
16 | #include <asm/ppc_asm.h> | 16 | #include <asm/ppc_asm.h> |
17 | #include <asm/unistd.h> | ||
17 | 18 | ||
18 | .text | 19 | .text |
19 | 20 | ||
@@ -43,3 +44,10 @@ _GLOBAL(add_reloc_offset) | |||
43 | add r3,r3,r5 | 44 | add r3,r3,r5 |
44 | mtlr r0 | 45 | mtlr r0 |
45 | blr | 46 | blr |
47 | |||
48 | _GLOBAL(kernel_execve) | ||
49 | li r0,__NR_execve | ||
50 | sc | ||
51 | bnslr | ||
52 | neg r3,r3 | ||
53 | blr | ||