aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/misc_32.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/kernel/misc_32.S')
-rw-r--r--arch/powerpc/kernel/misc_32.S8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/misc_32.S b/arch/powerpc/kernel/misc_32.S
index e9c8ab6eabfe..6a9b4bf0d173 100644
--- a/arch/powerpc/kernel/misc_32.S
+++ b/arch/powerpc/kernel/misc_32.S
@@ -900,8 +900,10 @@ _GLOBAL(kernel_thread)
900 li r4,0 /* new sp (unused) */ 900 li r4,0 /* new sp (unused) */
901 li r0,__NR_clone 901 li r0,__NR_clone
902 sc 902 sc
903 cmpwi 0,r3,0 /* parent or child? */ 903 bns+ 1f /* did system call indicate error? */
904 bne 1f /* return if parent */ 904 neg r3,r3 /* if so, make return code negative */
9051: cmpwi 0,r3,0 /* parent or child? */
906 bne 2f /* return if parent */
905 li r0,0 /* make top-level stack frame */ 907 li r0,0 /* make top-level stack frame */
906 stwu r0,-16(r1) 908 stwu r0,-16(r1)
907 mtlr r30 /* fn addr in lr */ 909 mtlr r30 /* fn addr in lr */
@@ -911,7 +913,7 @@ _GLOBAL(kernel_thread)
911 li r0,__NR_exit /* exit if function returns */ 913 li r0,__NR_exit /* exit if function returns */
912 li r3,0 914 li r3,0
913 sc 915 sc
9141: lwz r30,8(r1) 9162: lwz r30,8(r1)
915 lwz r31,12(r1) 917 lwz r31,12(r1)
916 addi r1,r1,16 918 addi r1,r1,16
917 blr 919 blr