diff options
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/entry.S | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S index c0ede25c5b99..077377a5d0ca 100644 --- a/arch/microblaze/kernel/entry.S +++ b/arch/microblaze/kernel/entry.S | |||
@@ -476,13 +476,13 @@ C_ENTRY(sys_vfork): | |||
476 | 476 | ||
477 | C_ENTRY(sys_clone): | 477 | C_ENTRY(sys_clone): |
478 | bnei r6, 1f; /* See if child SP arg (arg 1) is 0. */ | 478 | bnei r6, 1f; /* See if child SP arg (arg 1) is 0. */ |
479 | lwi r6, r1, PTO+PT_R1; /* If so, use paret's stack ptr */ | 479 | lwi r6, r1, PTO + PT_R1; /* If so, use paret's stack ptr */ |
480 | 1: la r7, r1, PTO; /* Arg 2: parent context */ | 480 | 1: add r10, r0, r9; /* Arg 6: (child_tidptr) */ |
481 | add r8, r0, r0; /* Arg 3: (unused) */ | 481 | add r9, r0, r8; /* Arg 5: (parent_tidptr) */ |
482 | add r9, r0, r0; /* Arg 4: (unused) */ | 482 | add r8, r0, r7; /* Arg 4: (stack_size) */ |
483 | add r10, r0, r0; /* Arg 5: (unused) */ | 483 | la r7, r1, PTO; /* Arg 3: pt_regs */ |
484 | brid do_fork /* Do real work (tail-call) */ | 484 | brid do_fork /* Do real work (tail-call) */ |
485 | nop; | 485 | nop |
486 | 486 | ||
487 | C_ENTRY(sys_execve): | 487 | C_ENTRY(sys_execve): |
488 | la r8, r1, PTO; /* add user context as 4th arg */ | 488 | la r8, r1, PTO; /* add user context as 4th arg */ |