Changeset 63bb83e in mainline


Ignore:
Timestamp:
2006-06-06T16:18:37Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d11fc1c
Parents:
085bd54
Message:

Fixed bad TLS BSS initialization.

Location:
libc/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/async.c

    r085bd54 r63bb83e  
    540540static int async_manager_thread(void *arg)
    541541{
    542         in_interrupt_handler = 0; // TODO: Handle TLS better
    543542        futex_up(&async_futex); /* async_futex is always locked when entering
    544543                                * manager */
  • libc/generic/psthread.c

    r085bd54 r63bb83e  
    5353static int serialized_threads; /* Protected by async_futex */
    5454/** Thread-local count of serialization. If >0, we must not preempt */
    55 static __thread serialization_count;
     55static __thread int serialization_count;
    5656/** Counter of threads residing in async_manager */
    5757static int threads_in_manager;
     
    9090        psthread_data_t *pt = __tcb_get()->pst_data;
    9191
    92         serialization_count = 0; // TODO: WHY HERE?
    9392        pt->retval = pt->func(pt->arg);
    9493
  • libc/generic/thread.c

    r085bd54 r63bb83e  
    6464       
    6565        memcpy(data, &_tdata_start, &_tdata_end - &_tdata_start);
    66         memset(data + (&_tbss_start-&_tdata_start), &_tbss_end-&_tbss_start, 0);
    67 
     66        memset(data + (&_tbss_start-&_tdata_start), 0, &_tbss_end-&_tbss_start);
    6867        return tcb;
    6968}
Note: See TracChangeset for help on using the changeset viewer.