Changeset 1a5eca4 in mainline for uspace/lib/c/arch/amd64/include/libarch/tls.h
- Timestamp:
- 2016-04-27T19:36:56Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af9dd1e
- Parents:
- d6f9fff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/include/libarch/tls.h
rd6f9fff r1a5eca4 47 47 static inline void __tcb_set(tcb_t *tcb) 48 48 { 49 __SYSCALL1(SYS_TLS_SET, (sysarg_t) tcb);49 asm volatile ("movq %0, %%fs:0" :: "r" (tcb)); 50 50 } 51 51 52 static inline tcb_t * 52 static inline tcb_t *__tcb_get(void) 53 53 { 54 void * 54 void *retval; 55 55 56 asm ("movq %%fs:0, %0" : "=r"(retval));56 asm volatile ("movq %%fs:0, %0" : "=r" (retval)); 57 57 return retval; 58 58 }
Note:
See TracChangeset
for help on using the changeset viewer.