Changeset 25f6bddb in mainline
- Timestamp:
- 2018-11-11T15:47:39Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b8fad2
- Parents:
- f4cb6c5f
- git-author:
- Jakub Jermar <jakub@…> (2018-11-11 10:27:00)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-11 15:47:39)
- Location:
- uspace
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async/client.c
rf4cb6c5f r25f6bddb 189 189 fibril_mutex_initialize(&session_ns.mutex); 190 190 session_ns.exchanges = 0; 191 } 192 193 void __async_client_fini(void) 194 { 195 fibril_rmutex_destroy(&message_mutex); 191 196 } 192 197 -
uspace/lib/c/generic/async/ports.c
rf4cb6c5f r25f6bddb 299 299 abort(); 300 300 } 301 302 void __async_ports_fini(void) 303 { 304 fibril_rmutex_destroy(&interface_mutex); 305 } -
uspace/lib/c/generic/async/server.c
rf4cb6c5f r25f6bddb 1028 1028 } 1029 1029 1030 void __async_server_fini(void) 1031 { 1032 fibril_rmutex_destroy(&client_mutex); 1033 fibril_rmutex_destroy(¬ification_mutex); 1034 } 1035 1030 1036 errno_t async_accept_0(ipc_call_t *call) 1031 1037 { -
uspace/lib/c/generic/io/kio.c
rf4cb6c5f r25f6bddb 60 60 if (futex_initialize(&kio_buffer.futex, 1) != EOK) 61 61 abort(); 62 } 63 64 void __kio_fini(void) 65 { 66 futex_destroy(&kio_buffer.futex); 62 67 } 63 68 -
uspace/lib/c/generic/libc.c
rf4cb6c5f r25f6bddb 153 153 } 154 154 155 void __libc_fini(void) 156 { 157 __async_client_fini(); 158 __async_server_fini(); 159 __async_ports_fini(); 160 161 __fibril_synch_fini(); 162 __fibrils_fini(); 163 164 __malloc_fini(); 165 166 __kio_fini(); 167 } 168 155 169 void __libc_exit(int status) 156 170 { -
uspace/lib/c/generic/malloc.c
rf4cb6c5f r25f6bddb 489 489 if (!area_create(PAGE_SIZE)) 490 490 abort(); 491 } 492 493 void __malloc_fini(void) 494 { 495 fibril_rmutex_destroy(&malloc_mutex); 491 496 } 492 497 -
uspace/lib/c/generic/private/async.h
rf4cb6c5f r25f6bddb 95 95 96 96 extern void __async_server_init(void); 97 extern void __async_server_fini(void); 97 98 extern void __async_client_init(void); 99 extern void __async_client_fini(void); 98 100 extern void __async_ports_init(void); 101 extern void __async_ports_fini(void); 99 102 100 103 extern errno_t async_create_port_internal(iface_t, async_port_handler_t, -
uspace/lib/c/generic/private/fibril.h
rf4cb6c5f r25f6bddb 79 79 80 80 extern void __fibrils_init(void); 81 extern void __fibrils_fini(void); 81 82 82 83 extern void fibril_wait_for(fibril_event_t *); -
uspace/lib/c/generic/private/malloc.h
rf4cb6c5f r25f6bddb 37 37 38 38 extern void __malloc_init(void); 39 extern void __malloc_fini(void); 39 40 40 41 #endif -
uspace/lib/c/generic/thread/fibril.c
rf4cb6c5f r25f6bddb 882 882 } 883 883 884 void __fibrils_fini(void) 885 { 886 futex_destroy(&fibril_futex); 887 futex_destroy(&ipc_lists_futex); 888 } 889 884 890 void fibril_usleep(usec_t timeout) 885 891 { -
uspace/lib/c/generic/thread/fibril_synch.c
rf4cb6c5f r25f6bddb 96 96 if (futex_initialize(&fibril_synch_futex, 1) != EOK) 97 97 abort(); 98 } 99 100 void __fibril_synch_fini(void) 101 { 102 futex_destroy(&fibril_synch_futex); 98 103 } 99 104 -
uspace/lib/c/include/fibril_synch.h
rf4cb6c5f r25f6bddb 165 165 166 166 extern void __fibril_synch_init(void); 167 extern void __fibril_synch_fini(void); 167 168 168 169 extern void fibril_mutex_initialize(fibril_mutex_t *); -
uspace/lib/c/include/io/kio.h
rf4cb6c5f r25f6bddb 43 43 44 44 extern void __kio_init(void); 45 extern void __kio_fini(void); 45 46 extern errno_t kio_write(const void *, size_t, size_t *); 46 47 extern void kio_update(void); -
uspace/lib/c/include/libc.h
rf4cb6c5f r25f6bddb 62 62 __syscall6(p1, p2, p3, p4, p5, p6, id) 63 63 64 extern void __libc_fini(void); 65 64 66 #endif 65 67 -
uspace/srv/loader/main.c
rf4cb6c5f r25f6bddb 59 59 #include <vfs/vfs.h> 60 60 #include <vfs/inbox.h> 61 #include <libc.h> 61 62 62 63 #ifdef CONFIG_RTLD … … 357 358 DPRINTF("Jump to entry point at %p\n", pcb.entry); 358 359 360 __libc_fini(); 359 361 __tcb_reset(); 360 362 entry_point_jmp(prog_info.finfo.entry, &pcb);
Note:
See TracChangeset
for help on using the changeset viewer.