Changeset fa23560 in mainline for uspace/lib/libc/arch/sparc64/include/thread.h
- Timestamp:
- 2007-10-30T22:54:11Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d21cf8
- Parents:
- b2a0f6dd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/sparc64/include/thread.h
rb2a0f6dd rfa23560 31 31 * @{ 32 32 */ 33 /**34 * @file35 * @brief sparc64 TLS functions.36 */37 33 38 34 #ifndef LIBC_sparc64_THREAD_H_ 39 35 #define LIBC_sparc64_THREAD_H_ 40 41 typedef struct {42 void *self;43 void *fibril_data;44 } tcb_t;45 46 static inline void __tcb_set(tcb_t *tcb)47 {48 asm volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7");49 }50 51 static inline tcb_t * __tcb_get(void)52 {53 void *retval;54 55 asm volatile ("mov %%g7, %0\n" : "=r" (retval));56 57 return retval;58 }59 36 60 37 #endif
Note:
See TracChangeset
for help on using the changeset viewer.