Changes in uspace/lib/c/arch/ia64/src/tls.c [a949f4a:ae7d03c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/ia64/src/tls.c
ra949f4a rae7d03c 1 1 /* 2 * Copyright (c) 2019 Jiri Svoboda3 2 * Copyright (c) 2006 Ondrej Palkovsky 4 3 * All rights reserved. … … 38 37 #include <tls.h> 39 38 40 #ifdef CONFIG_RTLD41 #include <rtld/rtld.h>42 #endif43 44 39 tcb_t *tls_alloc_arch(size_t size, size_t align) 45 40 { … … 52 47 } 53 48 54 /*55 * Rtld TLS support56 */57 58 typedef struct {59 unsigned long int ti_module;60 unsigned long int ti_offset;61 } tls_index;62 63 void *__tls_get_addr(tls_index *ti);64 65 void *__tls_get_addr(tls_index *ti)66 {67 uint8_t *tls;68 69 #ifdef CONFIG_RTLD70 if (runtime_env != NULL) {71 return rtld_tls_get_addr(runtime_env, __tcb_get(),72 ti->ti_module, ti->ti_offset);73 }74 #endif75 /* Get address of static TLS block */76 tls = tls_get();77 return tls + ti->ti_offset;78 }79 80 49 /** @} 81 50 */
Note:
See TracChangeset
for help on using the changeset viewer.