Changeset 0b05082 in mainline for uspace/lib/c/arch/amd64/include/libarch/tls.h
- Timestamp:
- 2018-07-18T18:56:16Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 40abf56
- Parents:
- 9b1baac
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-18 14:25:11)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-18 18:56:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/include/libarch/tls.h
r9b1baac r0b05082 38 38 #define CONFIG_TLS_VARIANT_2 39 39 40 #define ARCH_TP_OFFSET 0 41 40 42 #include <libc.h> 41 43 … … 45 47 } tcb_t; 46 48 47 static inline void __tcb_ set(tcb_t *tcb)49 static inline void __tcb_raw_set(void *tls) 48 50 { 49 asm volatile ("movq %0, %%fs:0" :: "r" (t cb));51 asm volatile ("movq %0, %%fs:0" :: "r" (tls)); 50 52 } 51 53 52 static inline tcb_t *__tcb_get(void)54 static inline void *__tcb_raw_get(void) 53 55 { 54 tcb_t *retval; 55 56 void *retval; 56 57 asm volatile ("movq %%fs:0, %0" : "=r" (retval)); 57 58 return retval;
Note:
See TracChangeset
for help on using the changeset viewer.