Lines Matching refs:current_thread_info
617 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
621 if (put_user((utrap_handler_t)(current_thread_info()->utraps[type]), old_p)) in SYSCALL_DEFINE5()
631 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
632 current_thread_info()->utraps = in SYSCALL_DEFINE5()
635 if (!current_thread_info()->utraps) in SYSCALL_DEFINE5()
637 current_thread_info()->utraps[0] = 1; in SYSCALL_DEFINE5()
639 if ((utrap_handler_t)current_thread_info()->utraps[type] != new_p && in SYSCALL_DEFINE5()
640 current_thread_info()->utraps[0] > 1) { in SYSCALL_DEFINE5()
641 unsigned long *p = current_thread_info()->utraps; in SYSCALL_DEFINE5()
643 current_thread_info()->utraps = in SYSCALL_DEFINE5()
647 if (!current_thread_info()->utraps) { in SYSCALL_DEFINE5()
648 current_thread_info()->utraps = p; in SYSCALL_DEFINE5()
652 current_thread_info()->utraps[0] = 1; in SYSCALL_DEFINE5()
653 memcpy(current_thread_info()->utraps+1, p+1, in SYSCALL_DEFINE5()
658 if (put_user((utrap_handler_t)(current_thread_info()->utraps[type]), old_p)) in SYSCALL_DEFINE5()
665 current_thread_info()->utraps[type] = (long)new_p; in SYSCALL_DEFINE5()