Changeset 0b5203b 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:
- 8a18d5b
- Parents:
- 9e889f6
- git-author:
- Jakub Jermar <jakub@…> (2018-11-10 15:05:04)
- git-committer:
- Jakub Jermar <jakub@…> (2018-11-11 15:47:39)
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/syscall.h
r9e889f6 r0b5203b 54 54 SYS_WAITQ_SLEEP, 55 55 SYS_WAITQ_WAKEUP, 56 SYS_FUTEX_SLEEP,57 SYS_FUTEX_WAKEUP,58 56 SYS_SMC_COHERENCE, 59 57 -
kernel/Makefile
r9e889f6 r0b5203b 227 227 generic/src/synch/smc.c \ 228 228 generic/src/synch/waitq.c \ 229 generic/src/synch/futex.c \230 229 generic/src/synch/syswaitq.c \ 231 230 generic/src/smp/ipi.c \ -
kernel/generic/include/proc/task.h
r9e889f6 r0b5203b 42 42 #include <synch/spinlock.h> 43 43 #include <synch/mutex.h> 44 #include <synch/futex.h>45 44 #include <adt/list.h> 46 45 #include <adt/odict.h> … … 128 127 task_arch_t arch; 129 128 130 /** Serializes access to futex_list.*/131 SPINLOCK_DECLARE(futex_list_lock);132 /** List of all futexes accesses by this task. */133 list_t futex_list;134 135 129 /** Accumulated accounting. */ 136 130 uint64_t ucycles; -
kernel/generic/src/main/main.c
r9e889f6 r0b5203b 77 77 #include <mm/reserve.h> 78 78 #include <synch/waitq.h> 79 #include <synch/futex.h>80 79 #include <synch/syswaitq.h> 81 80 #include <arch/arch.h> … … 279 278 task_init(); 280 279 thread_init(); 281 futex_init();282 280 sys_waitq_init(); 283 281 -
kernel/generic/src/proc/task.c
r9e889f6 r0b5203b 43 43 #include <mm/slab.h> 44 44 #include <atomic.h> 45 #include <synch/futex.h>46 45 #include <synch/spinlock.h> 47 46 #include <synch/waitq.h> … … 251 250 } 252 251 253 futex_task_init(task);254 255 252 irq_spinlock_lock(&tasks_lock, true); 256 253 -
kernel/generic/src/proc/thread.c
r9e889f6 r0b5203b 520 520 */ 521 521 ipc_cleanup(); 522 futex_task_cleanup();523 522 sys_waitq_task_cleanup(); 524 523 LOG("Cleanup of task %" PRIu64 " completed.", TASK->taskid); -
kernel/generic/src/syscall/syscall.c
r9e889f6 r0b5203b 46 46 #include <interrupt.h> 47 47 #include <ipc/sysipc.h> 48 #include <synch/futex.h>49 48 #include <synch/smc.h> 50 49 #include <synch/syswaitq.h> … … 140 139 [SYS_WAITQ_SLEEP] = (syshandler_t) sys_waitq_sleep, 141 140 [SYS_WAITQ_WAKEUP] = (syshandler_t) sys_waitq_wakeup, 142 [SYS_FUTEX_SLEEP] = (syshandler_t) sys_futex_sleep,143 [SYS_FUTEX_WAKEUP] = (syshandler_t) sys_futex_wakeup,144 141 [SYS_SMC_COHERENCE] = (syshandler_t) sys_smc_coherence, 145 142 -
uspace/app/trace/syscalls.c
r9e889f6 r0b5203b 46 46 [SYS_TASK_GET_ID] = { "task_get_id", 1, V_ERRNO }, 47 47 [SYS_TASK_SET_NAME] = { "task_set_name", 2, V_ERRNO }, 48 [SYS_FUTEX_SLEEP] = { "futex_sleep_timeout", 3, V_ERRNO },49 [SYS_FUTEX_WAKEUP] = { "futex_wakeup", 1, V_ERRNO },50 48 51 49 [SYS_AS_AREA_CREATE] = { "as_area_create", 5, V_ERRNO },
Note:
See TracChangeset
for help on using the changeset viewer.