Changeset d314571 in mainline
- Timestamp:
- 2018-11-11T15:46:26Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9e889f6
- Parents:
- 5c03bd30
- git-author:
- Jakub Jermar <jakub@…> (2018-11-10 14:36:06)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-11 15:46:26)
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/cap.h
r5c03bd30 rd314571 52 52 } *cap_irq_handle_t; 53 53 54 typedef struct { 55 } *cap_waitq_handle_t; 56 54 57 #endif 55 58 -
abi/include/abi/syscall.h
r5c03bd30 rd314571 51 51 SYS_PROGRAM_SPAWN_LOADER, 52 52 53 SYS_WAITQ_CREATE, 54 SYS_WAITQ_SLEEP, 55 SYS_WAITQ_WAKEUP, 53 56 SYS_FUTEX_SLEEP, 54 57 SYS_FUTEX_WAKEUP, -
kernel/Makefile
r5c03bd30 rd314571 228 228 generic/src/synch/waitq.c \ 229 229 generic/src/synch/futex.c \ 230 generic/src/synch/syswaitq.c \ 230 231 generic/src/smp/ipi.c \ 231 232 generic/src/smp/smp.c \ -
kernel/generic/include/cap/cap.h
r5c03bd30 rd314571 55 55 KOBJECT_TYPE_IRQ, 56 56 KOBJECT_TYPE_PHONE, 57 KOBJECT_TYPE_WAITQ, 57 58 KOBJECT_TYPE_MAX 58 59 } kobject_type_t; … … 63 64 struct irq; 64 65 struct phone; 66 struct waitq; 65 67 66 68 typedef struct kobject_ops { … … 88 90 struct irq *irq; 89 91 struct phone *phone; 92 struct waitq *waitq; 90 93 }; 91 94 } kobject_t; -
kernel/generic/include/synch/waitq.h
r5c03bd30 rd314571 49 49 * 50 50 */ 51 typedef struct {51 typedef struct waitq { 52 52 /** Lock protecting wait queue structure. 53 53 * -
kernel/generic/src/main/main.c
r5c03bd30 rd314571 78 78 #include <synch/waitq.h> 79 79 #include <synch/futex.h> 80 #include <synch/syswaitq.h> 80 81 #include <arch/arch.h> 81 82 #include <arch.h> … … 279 280 thread_init(); 280 281 futex_init(); 282 sys_waitq_init(); 281 283 282 284 sysinfo_set_item_data("boot_args", NULL, bargs, str_size(bargs) + 1); -
kernel/generic/src/proc/thread.c
r5c03bd30 rd314571 48 48 #include <synch/spinlock.h> 49 49 #include <synch/waitq.h> 50 #include <synch/syswaitq.h> 50 51 #include <cpu.h> 51 52 #include <str.h> … … 520 521 ipc_cleanup(); 521 522 futex_task_cleanup(); 523 sys_waitq_task_cleanup(); 522 524 LOG("Cleanup of task %" PRIu64 " completed.", TASK->taskid); 523 525 } -
kernel/generic/src/syscall/syscall.c
r5c03bd30 rd314571 48 48 #include <synch/futex.h> 49 49 #include <synch/smc.h> 50 #include <synch/syswaitq.h> 50 51 #include <ddi/ddi.h> 51 52 #include <ipc/event.h> … … 136 137 137 138 /* Synchronization related syscalls. */ 139 [SYS_WAITQ_CREATE] = (syshandler_t) sys_waitq_create, 140 [SYS_WAITQ_SLEEP] = (syshandler_t) sys_waitq_sleep, 141 [SYS_WAITQ_WAKEUP] = (syshandler_t) sys_waitq_wakeup, 138 142 [SYS_FUTEX_SLEEP] = (syshandler_t) sys_futex_sleep, 139 143 [SYS_FUTEX_WAKEUP] = (syshandler_t) sys_futex_wakeup,
Note:
See TracChangeset
for help on using the changeset viewer.