Changeset 1df1905 in mainline for uspace/lib/c/arch/sparc32/include/libarch/tls.h
- Timestamp:
- 2013-12-28T17:30:44Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 41b735f3
- Parents:
- c1023bcb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/sparc32/include/libarch/tls.h
rc1023bcb r1df1905 28 28 */ 29 29 30 /** @addtogroup libcsparc 6430 /** @addtogroup libcsparc32 31 31 * @{ 32 32 */ 33 /** 34 * @file 35 * @brief sparc64 TLS functions. 33 /** @file 34 * @brief sparc32 TLS functions. 36 35 */ 37 36 38 #ifndef LIBC_sparc 64_TLS_H_39 #define LIBC_sparc 64_TLS_H_37 #ifndef LIBC_sparc32_TLS_H_ 38 #define LIBC_sparc32_TLS_H_ 40 39 41 40 #define CONFIG_TLS_VARIANT_2 … … 48 47 static inline void __tcb_set(tcb_t *tcb) 49 48 { 50 asm volatile ("mov %0, %%g7\n" : : "r" (tcb) : "g7"); 49 asm volatile( 50 "mov %0, %%g7\n" 51 :: "r" (tcb) 52 : "g7" 53 ); 51 54 } 52 55 53 static inline tcb_t * 56 static inline tcb_t *__tcb_get(void) 54 57 { 55 58 void *retval; 56 57 asm volatile ("mov %%g7, %0\n" : "=r" (retval)); 58 59 60 asm volatile( 61 "mov %%g7, %0\n" 62 : "=r" (retval) 63 ); 64 59 65 return retval; 60 66 }
Note:
See TracChangeset
for help on using the changeset viewer.