Subversion Repositories HelenOS

Rev

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

Rev 4153 Rev 4263
Line 314... Line 314...
314
    ipl = interrupts_disable();
314
    ipl = interrupts_disable();
315
    t->saved_context.ipl = interrupts_read();
315
    t->saved_context.ipl = interrupts_read();
316
    interrupts_restore(ipl);
316
    interrupts_restore(ipl);
317
   
317
   
318
    memcpy(t->name, name, THREAD_NAME_BUFLEN);
318
    memcpy(t->name, name, THREAD_NAME_BUFLEN);
319
    t->name[THREAD_NAME_BUFLEN - 1] = '\0';
319
    t->name[THREAD_NAME_BUFLEN - 1] = 0;
320
   
320
   
321
    t->thread_code = func;
321
    t->thread_code = func;
322
    t->thread_arg = arg;
322
    t->thread_arg = arg;
323
    t->ticks = -1;
323
    t->ticks = -1;
324
    t->cycles = 0;
324
    t->cycles = 0;
Line 721... Line 721...
721
 
721
 
722
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
722
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
723
    if (rc != 0)
723
    if (rc != 0)
724
        return (unative_t) rc;
724
        return (unative_t) rc;
725
 
725
 
726
    namebuf[name_len] = '\0';
726
    namebuf[name_len] = 0;
727
 
727
 
728
    /*
728
    /*
729
     * In case of failure, kernel_uarg will be deallocated in this function.
729
     * In case of failure, kernel_uarg will be deallocated in this function.
730
     * In case of success, kernel_uarg will be freed in uinit().
730
     * In case of success, kernel_uarg will be freed in uinit().
731
     */
731
     */