}
tsd = map + size - __pthread_tsd_size;
}
- new = __copy_tls(tsd - libc.tls_size);
+ new = __copy_tls(stack = tsd - libc.tls_size);
new->map_base = map;
new->map_size = size;
new->pid = self->pid;
}
new->unblock_cancel = self->cancel;
new->canary = self->canary;
- stack = (void *)new;
a_inc(&libc.threads_minus_1);
ret = __clone(start, stack, flags, new, &new->tid, new, &new->tid);