Changeset 0b05082 in mainline for uspace/lib/c/arch/abs32le/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/abs32le/include/libarch/tls.h
r9b1baac r0b05082 41 41 #include <stddef.h> 42 42 43 /* Some architectures store the value with an offset. Some do not. */ 44 #define ARCH_TP_OFFSET 0 45 43 46 typedef struct { 44 47 void *self; … … 46 49 } tcb_t; 47 50 48 static inline void __tcb_ set(tcb_t *tcb)51 static inline void __tcb_raw_set(void *tls) 49 52 { 53 /* Usually a short assembly assigning to an ABI-defined register. */ 50 54 } 51 55 52 static inline tcb_t *__tcb_get(void)56 static inline void *__tcb_raw_get(void) 53 57 { 58 /* Usually a short assembly reading from an ABI-defined register. */ 54 59 return NULL; 55 60 }
Note:
See TracChangeset
for help on using the changeset viewer.