Changeset 58563585 in mainline for uspace/lib/c
- Timestamp:
- 2016-08-31T11:15:39Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 10cb47e
- Parents:
- 7a67416
- Location:
- uspace/lib/c
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/arch/amd64/src/stacktrace_asm.S
r7a67416 r58563585 44 44 ret 45 45 FUNCTION_END(stacktrace_pc_get) 46 -
uspace/lib/c/arch/arm32/src/eabi.S
r7a67416 r58563585 95 95 mov pc, lr 96 96 FUNCTION_END(__aeabi_uldivmod) 97 -
uspace/lib/c/arch/arm32/src/stacktrace_asm.S
r7a67416 r58563585 44 44 mov pc, lr 45 45 FUNCTION_END(stacktrace_pc_get) 46 -
uspace/lib/c/arch/ia32/src/rtld/reloc.c
r7a67416 r58563585 69 69 uint32_t sym_size; 70 70 char *str_tab; 71 71 72 72 elf_symbol_t *sym_def; 73 73 module_t *dest; … … 80 80 81 81 DPRINTF("address: 0x%x, entries: %d\n", (uintptr_t)rt, rt_entries); 82 82 83 83 for (i = 0; i < rt_entries; ++i) { 84 84 // DPRINTF("symbol %d: ", i); … … 171 171 memcpy(r_ptr, (const void *)sym_addr, sym_size); 172 172 break; 173 173 174 174 case R_386_RELATIVE: 175 175 DPRINTF("fixup R_386_RELATIVE (b+a)\n"); -
uspace/lib/c/arch/ia32/src/syscall.S
r7a67416 r58563585 63 63 FUNCTION_END(__syscall_slow) 64 64 65 66 65 /** Syscall wrapper - SYSENTER version. 67 66 * -
uspace/lib/c/arch/ia64/src/fibril.S
r7a67416 r58563585 338 338 br.ret.sptk.many b0 339 339 FUNCTION_END(context_restore) 340 -
uspace/lib/c/arch/ia64/src/stacktrace_asm.S
r7a67416 r58563585 41 41 FUNCTION_END(stacktrace_fp_get) 42 42 FUNCTION_END(stacktrace_pc_get) 43 -
uspace/lib/c/arch/ia64/src/syscall.S
r7a67416 r58563585 45 45 br.ret.sptk.many b0 46 46 FUNCTION_END(__syscall) 47 -
uspace/lib/c/arch/mips32/src/entryjmp.S
r7a67416 r58563585 51 51 addiu $sp, ABI_STACK_FRAME 52 52 FUNCTION_END(entry_point_jmp) 53 -
uspace/lib/c/generic/async.c
r7a67416 r58563585 991 991 * @param callid Hash of the incoming call. 992 992 * @param call Data of the incoming call. 993 * 993 994 */ 994 995 static void process_notification(ipc_callid_t callid, ipc_call_t *call) … … 1316 1317 fibril_t *fibril = (fibril_t *) __tcb_get()->fibril_data; 1317 1318 unsigned oldsw = fibril->switches; 1318 1319 1319 1320 process_notification(callid, call); 1320 1321 1321 1322 if (oldsw != fibril->switches) { 1322 1323 /* … … 1334 1335 fibril_switch(FIBRIL_FROM_DEAD); 1335 1336 } 1337 1336 1338 return; 1337 1339 } -
uspace/lib/c/generic/dnsr.c
r7a67416 r58563585 124 124 return (int) retval; 125 125 } 126 126 127 127 size_t act_size = IPC_GET_ARG2(answer_cname); 128 128 assert(act_size <= DNSR_NAME_MAX_SIZE); 129 129 130 130 cname_buf[act_size] = '\0'; 131 131 132 132 info->cname = str_dup(cname_buf); 133 133 134 134 if (info->cname == NULL) { 135 135 free(info); -
uspace/lib/c/generic/rtld/module.c
r7a67416 r58563585 151 151 } 152 152 } 153 153 154 154 return NULL; /* Not found */ 155 155 } … … 167 167 module_t *m; 168 168 int rc; 169 169 170 170 m = calloc(1, sizeof(module_t)); 171 171 if (m == NULL) { … … 173 173 exit(1); 174 174 } 175 175 176 176 m->rtld = rtld; 177 177 m->id = rtld_get_next_id(rtld); … … 217 217 /* Insert into the list of loaded modules */ 218 218 list_append(&m->modules_link, &rtld->modules); 219 219 220 220 /* Copy TLS info */ 221 221 m->tdata = info.tls.tdata; … … 223 223 m->tbss_size = info.tls.tbss_size; 224 224 m->tls_align = info.tls.tls_align; 225 225 226 226 DPRINTF("tdata at %p size %zu, tbss size %zu\n", 227 227 m->tdata, m->tdata_size, m->tbss_size); -
uspace/lib/c/generic/tls.c
r7a67416 r58563585 74 74 tcb_t *tcb; 75 75 size_t tls_size = &_tbss_end - &_tdata_start; 76 76 77 77 #ifdef CONFIG_RTLD 78 78 if (runtime_env != NULL) 79 79 return rtld_tls_make(runtime_env); 80 80 #endif 81 81 82 tcb = tls_alloc_arch(&data, tls_size); 82 83 if (!tcb) 83 84 return NULL; 84 85 85 86 /* 86 87 * Copy thread local data from the initialization image. … … 118 119 if (!tcb) 119 120 return NULL; 120 *data = ((void *)tcb) + sizeof(tcb_t); 121 122 *data = ((void *) tcb) + sizeof(tcb_t); 121 123 #ifdef CONFIG_RTLD 122 124 tcb->dtv = NULL; … … 148 150 { 149 151 tcb_t *tcb; 150 152 151 153 size = ALIGN_UP(size, &_tls_alignment); 152 154 *data = memalign((uintptr_t) &_tls_alignment, sizeof(tcb_t) + size); -
uspace/lib/c/include/fibril.h
r7a67416 r58563585 79 79 fibril_owner_info_t *waits_for; 80 80 81 unsigned switches;81 unsigned int switches; 82 82 } fibril_t; 83 83
Note:
See TracChangeset
for help on using the changeset viewer.