Changeset c4c5de5 in mainline for libc/arch/ia64/include/thread.h


Ignore:
Timestamp:
2006-03-24T14:29:19Z (19 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/arch/ia64/include/thread.h

    r520492a rc4c5de5  
    3030#define __LIBC__ia64THREAD_H__
    3131
    32 static inline void __tls_set(void *tls)
     32/* This structure must be exactly 16 bytes long */
     33typedef struct {
     34        void *dtv; /* unused in static linking*/
     35        void *pst_data;
     36} tcb_t;
     37
     38static inline void __tcb_set(tcb_t *tcb)
    3339{
    34         __asm__ volatile ("mov r13 = %0\n" : : "r" (tls) : "r13");
     40        __asm__ volatile ("mov r13 = %0\n" : : "r" (tcb) : "r13");
    3541}
    3642
    37 static inline void *__tls_get(void)
     43static inline tcb_t *__tcb_get(void)
    3844{
    3945        void *retval;
Note: See TracChangeset for help on using the changeset viewer.