Changeset 18b6a88 in mainline for uspace/lib/c/arch/mips32/include/libarch/tls.h
- Timestamp:
- 2018-04-15T09:35:04Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1f44ca
- Parents:
- 8ebe212
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/mips32/include/libarch/tls.h
r8ebe212 r18b6a88 69 69 tp += MIPS_TP_OFFSET + sizeof(tcb_t); 70 70 71 asm volatile ("add $27, %0, $0" : : "r" (tp)); /* Move tls to K1 */71 asm volatile ("add $27, %0, $0" : : "r" (tp)); /* Move tls to K1 */ 72 72 } 73 73 74 static inline tcb_t * 74 static inline tcb_t *__tcb_get(void) 75 75 { 76 void * 76 void *retval; 77 77 78 asm volatile ("add %0, $27, $0" : "=r"(retval));78 asm volatile ("add %0, $27, $0" : "=r" (retval)); 79 79 80 80 return (tcb_t *)(retval - MIPS_TP_OFFSET - sizeof(tcb_t));
Note:
See TracChangeset
for help on using the changeset viewer.