Changes in uspace/lib/libc/arch/mips32/src/tls.c [1ea99cc:fa23560] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/mips32/src/tls.c
r1ea99cc rfa23560 47 47 } 48 48 49 typedef struct {50 unsigned long ti_module;51 unsigned long ti_offset;52 } tls_index;53 54 void *__tls_get_addr(tls_index *ti);55 56 /* mips32 uses TLS variant 1 */57 void *__tls_get_addr(tls_index *ti)58 {59 uint8_t *tls;60 uint32_t v;61 62 tls = (uint8_t *)__tcb_get() + sizeof(tcb_t);63 64 /* Hopefully this is right. No docs found. */65 v = (uint32_t) (tls + ti->ti_offset + 0x8000);66 return (void *) v;67 }68 69 49 /** @} 70 50 */
Note:
See TracChangeset
for help on using the changeset viewer.