Changeset c4c5de5 in mainline for libc/include


Ignore:
Timestamp:
2006-03-24T14:29:19Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8fe1cdb
Parents:
520492a
Message:

Completed support for TLS in GCC (modifier thread) for ia32,amd64,ia64 and mips.

Location:
libc/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libc/include/psthread.h

    r520492a rc4c5de5  
    3232#include <libarch/psthread.h>
    3333#include <libadt/list.h>
     34#include <libarch/thread.h>
    3435
    3536#ifndef context_set
     
    4344
    4445struct psthread_data {
    45         struct psthread_data *self; /* ia32, amd64 needs to get self address */
    46 
    4746        link_t link;
    4847        context_t ctx;
     
    5049        void *arg;
    5150        int (*func)(void *);
     51        tcb_t *tcb;
    5252
    5353        struct psthread_data *waiter;
     
    6464int psthread_schedule_next(void);
    6565int psthread_join(pstid_t psthrid);
     66psthread_data_t * psthread_setup(tcb_t *tcb);
     67void psthread_teardown(psthread_data_t *pt);
     68
    6669
    6770#endif
  • libc/include/thread.h

    r520492a rc4c5de5  
    3232#include <kernel/proc/uarg.h>
    3333#include <libarch/thread.h>
     34#include <types.h>
    3435
    3536extern void __thread_entry(void);
     
    3839extern int thread_create(void (* function)(void *arg), void *arg, char *name);
    3940extern void thread_exit(int status);
    40 void * __make_tls(void);
    41 void __free_tls(void *);
     41tcb_t * __make_tls(void);
     42tcb_t * __alloc_tls(void **data, size_t size);
     43void __free_tls(tcb_t *);
     44void __free_tls_arch(tcb_t *, size_t size);
    4245
    4346#endif
Note: See TracChangeset for help on using the changeset viewer.