Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. parent_tid_ptr = regs->u_regs[UREG_I2];
  2. child_tid_ptr = regs->u_regs[UREG_I4];
  3.  
  4. ret = do_fork(clone_flags, stack_start, stack_size,
  5. (int __user *) parent_tid_ptr,
  6. (int __user *) child_tid_ptr);
  7.  
  8. /* If we get an error and potentially restart the system
  9. * call, we're screwed because copy_thread() clobbered
  10. * the parent's %o1. So detect that case and restore it
  11. * here.
  12. */
  13. if ((unsigned long)ret >= -ERESTART_RESTARTBLOCK)
  14. regs->u_regs[UREG_I1] = orig_i1;
  15.  
  16. return ret;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement