Rev 1427 | Rev 1653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1427 | Rev 1614 | ||
---|---|---|---|
Line 61... | Line 61... | ||
61 | size_t tls_size = &_tbss_end - &_tdata_start; |
61 | size_t tls_size = &_tbss_end - &_tdata_start; |
62 | 62 | ||
63 | tcb = __alloc_tls(&data, tls_size); |
63 | tcb = __alloc_tls(&data, tls_size); |
64 | 64 | ||
65 | memcpy(data, &_tdata_start, &_tdata_end - &_tdata_start); |
65 | memcpy(data, &_tdata_start, &_tdata_end - &_tdata_start); |
66 | memset(data + (&_tbss_start-&_tdata_start), &_tbss_end-&_tbss_start, 0); |
66 | memset(data + (&_tbss_start-&_tdata_start), 0, &_tbss_end-&_tbss_start); |
67 | - | ||
68 | return tcb; |
67 | return tcb; |
69 | } |
68 | } |
70 | 69 | ||
71 | void __free_tls(tcb_t *tcb) |
70 | void __free_tls(tcb_t *tcb) |
72 | { |
71 | { |