Changes in uspace/lib/c/arch/arm32/src/tls.c [3ffb69b:ae7d03c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/arm32/src/tls.c
r3ffb69b rae7d03c 1 1 /* 2 * Copyright (c) 2019 Jiri Svoboda3 2 * Copyright (c) 2007 Pavel Jancik 4 3 * All rights reserved. … … 39 38 #include <stddef.h> 40 39 41 #ifdef CONFIG_RTLD42 #include <rtld/rtld.h>43 #endif44 45 40 tcb_t *tls_alloc_arch(size_t size, size_t align) 46 41 { … … 53 48 } 54 49 55 /*56 * Rtld TLS support57 */58 59 typedef struct {60 unsigned long int ti_module;61 unsigned long int ti_offset;62 } tls_index;63 64 int __tls_debug = 0;65 66 void *__tls_get_addr(tls_index *ti);67 68 void *__tls_get_addr(tls_index *ti)69 {70 uint8_t *tls;71 72 #ifdef CONFIG_RTLD73 if (runtime_env != NULL) {74 return rtld_tls_get_addr(runtime_env, __tcb_get(),75 ti->ti_module, ti->ti_offset);76 }77 #endif78 /* Get address of static TLS block */79 tls = tls_get();80 return tls + ti->ti_offset;81 }82 83 50 /** @} 84 51 */
Note:
See TracChangeset
for help on using the changeset viewer.