Changeset c4c5de5 in mainline for libc/arch/ia64/include/thread.h
- Timestamp:
- 2006-03-24T14:29:19Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8fe1cdb
- Parents:
- 520492a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libc/arch/ia64/include/thread.h
r520492a rc4c5de5 30 30 #define __LIBC__ia64THREAD_H__ 31 31 32 static inline void __tls_set(void *tls) 32 /* This structure must be exactly 16 bytes long */ 33 typedef struct { 34 void *dtv; /* unused in static linking*/ 35 void *pst_data; 36 } tcb_t; 37 38 static inline void __tcb_set(tcb_t *tcb) 33 39 { 34 __asm__ volatile ("mov r13 = %0\n" : : "r" (t ls) : "r13");40 __asm__ volatile ("mov r13 = %0\n" : : "r" (tcb) : "r13"); 35 41 } 36 42 37 static inline void *__tls_get(void)43 static inline tcb_t *__tcb_get(void) 38 44 { 39 45 void *retval;
Note:
See TracChangeset
for help on using the changeset viewer.