Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/tls.c

    r58563585 r118a872  
    7474        tcb_t *tcb;
    7575        size_t tls_size = &_tbss_end - &_tdata_start;
    76        
     76
    7777#ifdef CONFIG_RTLD
    7878        if (runtime_env != NULL)
    7979                return rtld_tls_make(runtime_env);
    8080#endif
    81        
    8281        tcb = tls_alloc_arch(&data, tls_size);
    8382        if (!tcb)
    8483                return NULL;
    85        
     84
    8685        /*
    8786         * Copy thread local data from the initialization image.
     
    119118        if (!tcb)
    120119                return NULL;
    121        
    122         *data = ((void *) tcb) + sizeof(tcb_t);
     120        *data = ((void *)tcb) + sizeof(tcb_t);
    123121#ifdef CONFIG_RTLD
    124122        tcb->dtv = NULL;
     
    150148{
    151149        tcb_t *tcb;
    152        
     150
    153151        size = ALIGN_UP(size, &_tls_alignment);
    154152        *data = memalign((uintptr_t) &_tls_alignment, sizeof(tcb_t) + size);
Note: See TracChangeset for help on using the changeset viewer.