Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
3186 |
5896 d 2 h |
jermar |
/trunk/kernel/ |
Support for active mutexes. Active mutexes implement busy waiting, pretty much
in the same way as spinlocks, but can be passed to condition variables, which is
the motivation for this enhancement. |
|
/trunk/kernel/genarch/src/mm/as_ht.c /trunk/kernel/generic/include/synch/mutex.h /trunk/kernel/generic/src/ipc/ipc.c /trunk/kernel/generic/src/mm/as.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/synch/condvar.c /trunk/kernel/generic/src/synch/mutex.c /trunk/kernel/generic/src/synch/rwlock.c /trunk/kernel/test/mm/slab2.c
|
3181 |
5898 d 10 h |
jermar |
/trunk/kernel/generic/src/ |
cstyle for kinit.c and scheduler.c |
|
/trunk/kernel/generic/src/main/kinit.c /trunk/kernel/generic/src/proc/scheduler.c
|
3137 |
5905 d 9 h |
jermar |
/trunk/kernel/generic/src/proc/ |
Maintain cache coherence after sys_task_spawn() copies ELF image from user space. |
|
/trunk/kernel/generic/src/proc/task.c
|
3104 |
5913 d 13 h |
svoboda |
/trunk/kernel/ |
Declare arguments for memstr.h operations as pointers instead of uintptr_t. |
|
/trunk/kernel/Makefile /trunk/kernel/arch/amd64/include/memstr.h /trunk/kernel/arch/amd64/src/pm.c /trunk/kernel/arch/arm32/include/memstr.h /trunk/kernel/arch/ia32/include/memstr.h /trunk/kernel/arch/ia32/src/drivers/ega.c /trunk/kernel/arch/ia32/src/pm.c /trunk/kernel/arch/ia32/src/smp/smp.c /trunk/kernel/arch/ia32xen/src/ia32xen.c /trunk/kernel/arch/ia32xen/src/pm.c /trunk/kernel/arch/ia32xen/src/smp/smp.c /trunk/kernel/arch/ia64/include/memstr.h /trunk/kernel/arch/ia64/src/drivers/ega.c /trunk/kernel/arch/ia64/src/mm/vhpt.c /trunk/kernel/arch/mips32/include/memstr.h /trunk/kernel/arch/ppc32/include/memstr.h /trunk/kernel/arch/ppc64/include/memstr.h /trunk/kernel/arch/ppc64/src/mm/page.c /trunk/kernel/arch/sparc64/include/memstr.h /trunk/kernel/arch/sparc64/src/mm/as.c /trunk/kernel/genarch/src/mm/as_pt.c /trunk/kernel/genarch/src/mm/page_pt.c /trunk/kernel/generic/include/memstr.h /trunk/kernel/generic/src/adt/hash_table.c /trunk/kernel/generic/src/cpu/cpu.c /trunk/kernel/generic/src/ipc/ipc.c /trunk/kernel/generic/src/lib/memstr.c /trunk/kernel/generic/src/lib/objc_ext.c /trunk/kernel/generic/src/mm/as.c /trunk/kernel/generic/src/mm/backend_anon.c /trunk/kernel/generic/src/mm/backend_elf.c /trunk/kernel/generic/src/mm/slab.c /trunk/kernel/generic/src/proc/thread.c /trunk/kernel/test/mm/falloc2.c /trunk/kernel/test/mm/slab1.c /trunk/kernel/test/mm/slab2.c
|
3063 |
5916 d 6 h |
decky |
/trunk/kernel/generic/src/proc/ |
support for SYS_SPAWN syscall
proper printf formatting
change the way init tasks are created |
|
/trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c
|
3062 |
5916 d 6 h |
decky |
/trunk/kernel/generic/src/proc/ |
proper printf formatting |
|
/trunk/kernel/generic/src/proc/scheduler.c
|
2907 |
5938 d 5 h |
jermar |
/trunk/kernel/generic/src/proc/ |
Improve comment for thread_create(). |
|
/trunk/kernel/generic/src/proc/thread.c
|
2802 |
5975 d 10 h |
jermar |
/trunk/kernel/generic/ |
Fix initialization of answerbox->task in ipc_answerbox_init.
Contributed by Jiri Svoboda. |
|
/trunk/kernel/generic/include/ipc/ipc.h /trunk/kernel/generic/src/ipc/ipc.c /trunk/kernel/generic/src/proc/task.c
|
2790 |
5981 d 11 h |
jermar |
/trunk/kernel/generic/src/proc/ |
Fix typo ALV tree vs. AVL tree. |
|
/trunk/kernel/generic/src/proc/thread.c
|
2765 |
6002 d 1 h |
jermar |
/trunk/kernel/generic/src/proc/ |
tasklet.c needs to include config.h |
|
/trunk/kernel/generic/src/proc/tasklet.c
|
2746 |
6013 d 4 h |
decky |
/trunk/kernel/ |
start merging tasklets (more or less a rewrite) |
|
/trunk/kernel/generic/include/proc/tasklet.h /trunk/kernel/generic/src/proc/tasklet.c
/trunk/kernel/Makefile /trunk/kernel/generic/src/main/main.c
|
2745 |
6013 d 9 h |
decky |
/trunk/ |
code cleanup (mostly signed/unsigned)
allow extra compiler warnings |
|
/trunk/kernel/Makefile /trunk/kernel/arch/amd64/src/mm/page.c /trunk/kernel/arch/arm32/src/arm32.c /trunk/kernel/arch/arm32/src/cpu/cpu.c /trunk/kernel/arch/arm32/src/debug/print.c /trunk/kernel/arch/ia32xen/src/mm/tlb.c /trunk/kernel/arch/ia32xen/src/smp/mps.c /trunk/kernel/arch/ia32xen/src/smp/smp.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/ia64/src/mm/tlb.c /trunk/kernel/arch/mips32/src/cpu/cpu.c /trunk/kernel/arch/mips32/src/debugger.c /trunk/kernel/arch/mips32/src/drivers/arc.c /trunk/kernel/arch/mips32/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/mm/frame.c /trunk/kernel/arch/sparc64/src/mm/page.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/smp/ipi.c /trunk/kernel/genarch/src/ofw/ebus.c /trunk/kernel/genarch/src/ofw/fhc.c /trunk/kernel/genarch/src/ofw/ofw_tree.c /trunk/kernel/genarch/src/ofw/pci.c /trunk/kernel/genarch/src/ofw/sbus.c /trunk/kernel/generic/include/lib/elf.h /trunk/kernel/generic/include/mm/as.h /trunk/kernel/generic/include/mm/slab.h /trunk/kernel/generic/src/debug/symtab.c /trunk/kernel/generic/src/interrupt/interrupt.c /trunk/kernel/generic/src/ipc/irq.c /trunk/kernel/generic/src/ipc/sysipc.c /trunk/kernel/generic/src/lib/elf.c /trunk/kernel/generic/src/lib/func.c /trunk/kernel/generic/src/lib/memstr.c /trunk/kernel/generic/src/lib/sort.c /trunk/kernel/generic/src/main/main.c /trunk/kernel/generic/src/mm/as.c /trunk/kernel/generic/src/mm/backend_anon.c /trunk/kernel/generic/src/mm/backend_elf.c /trunk/kernel/generic/src/mm/frame.c /trunk/kernel/generic/src/mm/slab.c /trunk/kernel/generic/src/mm/tlb.c /trunk/kernel/generic/src/printf/printf_core.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/synch/futex.c /trunk/kernel/generic/src/time/clock.c /trunk/kernel/test/avltree/avltree1.c /trunk/kernel/test/fpu/fpu1.c /trunk/kernel/test/fpu/mips2.c /trunk/kernel/test/fpu/sse1.c /trunk/kernel/test/mm/falloc2.c /trunk/kernel/test/synch/rwlock5.c /trunk/kernel/test/test.c /trunk/kernel/test/thread/thread1.c /trunk/uspace/lib/libc/arch/ppc64/src/syscall.c
|
2712 |
6039 d 7 h |
decky |
/trunk/kernel/ |
prettyprint output |
|
/trunk/kernel/arch/amd64/src/debugger.c /trunk/kernel/arch/ia32/src/mm/frame.c /trunk/kernel/generic/include/macros.h /trunk/kernel/generic/src/interrupt/interrupt.c /trunk/kernel/generic/src/mm/frame.c /trunk/kernel/generic/src/printf/printf_core.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c
|
2632 |
6100 d 20 h |
decky |
/trunk/kernel/generic/src/proc/ |
try to kill the tasks fewer times by introducing a delay in iterations |
|
/trunk/kernel/generic/src/proc/task.c
|
2504 |
6226 d 2 h |
jermar |
/trunk/kernel/generic/ |
Give the AVL tree walkers the possibility to take an argument.
Each walker is now supposed to return a bool value to support walk termination.
Switch over from the tasks_btree B+tree to tasks_tree AVL tree.
This makes the fix for ticket #48 complete. |
|
/trunk/kernel/generic/include/adt/avl.h /trunk/kernel/generic/include/proc/task.h /trunk/kernel/generic/src/adt/avl.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c
|
2502 |
6226 d 7 h |
jermar |
/trunk/kernel/generic/ |
Replace the threads_btree B+tree with an AVL tree. The new variable is called
threads_tree. For printing list of threads, use the new AVL tree walker
mechanism.
This solves half of ticket #48. |
|
/trunk/kernel/generic/include/proc/thread.h /trunk/kernel/generic/src/proc/thread.c
|
2487 |
6253 d 2 h |
jermar |
/trunk/kernel/generic/src/proc/ |
Kernel stack address was printed twice. |
|
/trunk/kernel/generic/src/proc/thread.c
|
2470 |
6271 d 23 h |
jermar |
/trunk/ |
Fix a double-free recently introduced in revision r2436.
Add a comment clarifying the life-cycle of the kernel_uarg structure.
Comment out the freeing of userspace thread stack while still running on it.
This should be fixed by implementing userspace version of thread_join(). |
|
/trunk/kernel/generic/src/proc/thread.c /trunk/uspace/libc/generic/thread.c
|
2451 |
6281 d 1 h |
jermar |
/trunk/kernel/generic/ |
JoinMe -> Lingering |
|
/trunk/kernel/generic/include/proc/thread.h /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/generic/src/proc/thread.c
|
2446 |
6284 d 5 h |
jermar |
/trunk/kernel/generic/ |
More efficient and simpler task termination.
Based on the assumption, that after its creation, only the task itself can create more threads for itself,
the last thread with userspace context to execute thread_exit() will perform futex and IPC cleanup. When
the task has no threads, it is destroyed. Both the cleanup and destruction is controlled by reference
counting.
As for userspace threads, even though there could be a global garbage collector for joining threads, it is
much simpler if the uinit thread detaches itself before switching to userspace.
task_kill() is now an idempotent operation. It just instructs the threads within a task to exit.
Change in the name of a thread state: Undead -> JoinMe. |
|
/trunk/kernel/generic/include/adt/list.h /trunk/kernel/generic/include/proc/task.h /trunk/kernel/generic/include/proc/thread.h /trunk/kernel/generic/src/main/uinit.c /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/proc/thread.c
|