Subversion Repositories HelenOS

Rev

Rev 3597 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3597 Rev 3623
Line 761... Line 761...
761
                free(kernel_uarg);
761
                free(kernel_uarg);
762
 
762
 
763
                return (unative_t) rc;
763
                return (unative_t) rc;
764
             }
764
             }
765
        }
765
        }
766
        thread_attach(t, TASK);
-
 
767
        thread_ready(t);
-
 
768
 
-
 
769
#ifdef CONFIG_UDEBUG
766
#ifdef CONFIG_UDEBUG
-
 
767
        /*
770
        /* Generate udebug THREAD_B event */
768
         * Generate udebug THREAD_B event and attach the thread.
-
 
769
         * This must be done atomically (with the debug locks held),
-
 
770
         * otherwise we would either miss some thread or receive
-
 
771
         * THREAD_B events for threads that already existed
-
 
772
         * and could be detected with THREAD_READ before.
-
 
773
         */
771
        udebug_thread_b_event(t);
774
        udebug_thread_b_event_attach(t, TASK);
-
 
775
#else
-
 
776
        thread_attach(t, TASK);
772
#endif
777
#endif
-
 
778
        thread_ready(t);
773
 
779
 
774
        return 0;
780
        return 0;
775
    } else
781
    } else
776
        free(kernel_uarg);
782
        free(kernel_uarg);
777
 
783