Changeset f126c87 in mainline for uspace/lib/c/generic/tls.c


Ignore:
Timestamp:
2016-09-01T16:46:27Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2a2fbc8
Parents:
9befb0d (diff), bdfdc51c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from mainline.

File:
1 edited

Legend:

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

    r9befb0d rf126c87  
    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       
    8182        tcb = tls_alloc_arch(&data, tls_size);
    8283        if (!tcb)
    8384                return NULL;
    84 
     85       
    8586        /*
    8687         * Copy thread local data from the initialization image.
     
    118119        if (!tcb)
    119120                return NULL;
    120         *data = ((void *)tcb) + sizeof(tcb_t);
     121       
     122        *data = ((void *) tcb) + sizeof(tcb_t);
    121123#ifdef CONFIG_RTLD
    122124        tcb->dtv = NULL;
     
    148150{
    149151        tcb_t *tcb;
    150 
     152       
    151153        size = ALIGN_UP(size, &_tls_alignment);
    152154        *data = memalign((uintptr_t) &_tls_alignment, sizeof(tcb_t) + size);
Note: See TracChangeset for help on using the changeset viewer.