Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1580 |
6648 d 6 h |
jermar |
/kernel/trunk/generic/src/ |
Update for task_kill(). |
|
/kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/synch/waitq.c
|
1579 |
6648 d 15 h |
jermar |
/kernel/trunk/generic/ |
Framework for task_kill().
Some pieces (e.g. implementation of ktask_cleanup() kernel thread and
task_destroy() function) are missing.
Changed locking order for task lock, threads_lock and thread lock from
threads_lock, thread lock, task lock to task lock, threads_lock, thread lock. |
|
/kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/waitq.c /kernel/trunk/generic/src/syscall/syscall.c
|
1502 |
6651 d 1 h |
jermar |
/kernel/trunk/ |
Replace nonblocking argument of waitq_sleep_timeout with flags that specify mode of operation.
Now a flag can be used to specify interruptible sleep.
Modify waitq_interrupt_sleep() to only interrupt threads that used this flag.
O |
|
/kernel/trunk/arch/ia32/src/smp/smp.c /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/include/synch/condvar.h /kernel/trunk/generic/include/synch/futex.h /kernel/trunk/generic/include/synch/mutex.h /kernel/trunk/generic/include/synch/rwlock.h /kernel/trunk/generic/include/synch/semaphore.h /kernel/trunk/generic/include/synch/synch.h /kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/condvar.c /kernel/trunk/generic/src/synch/futex.c /kernel/trunk/generic/src/synch/mutex.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/generic/src/synch/semaphore.c /kernel/trunk/generic/src/synch/waitq.c
|
1467 |
6652 d 21 h |
jermar |
/kernel/trunk/generic/src/synch/ |
Allow usage of blocking synchronization primitives in functions that are also called during system initialization. |
|
/kernel/trunk/generic/src/synch/waitq.c
|
1460 |
6653 d 1 h |
jermar |
/kernel/trunk/generic/ |
Reference counting for futexes. |
|
/kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/synch/futex.h /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/synch/futex.c
|
1416 |
6659 d 3 h |
jermar |
/kernel/trunk/generic/ |
Make implementation of condition variables compliant with their definition.
Signal operation must become a no-op if there is no thread in the wait operation.
Remove condvar_trywait() which has no meaning after this change. |
|
/kernel/trunk/generic/include/synch/condvar.h /kernel/trunk/generic/src/synch/condvar.c
|
1414 |
6659 d 5 h |
jermar |
/kernel/trunk/generic/src/synch/ |
Small fixes in futex.c.
PTE_GET_FRAME() returns frame address, not PFN.
Update comments. |
|
/kernel/trunk/generic/src/synch/futex.c
|
1375 |
6665 d 1 h |
jermar |
/kernel/trunk/generic/ |
Fix race in condition variables. |
|
/kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/src/synch/condvar.c /kernel/trunk/generic/src/synch/waitq.c
|
1323 |
6670 d 4 h |
jermar |
/kernel/trunk/ |
Increase "timeout" for debugging spinlock so that false positive
deadlock reports are suppressed on real hardware.
Also add one HT configuration to hardware compatibility list. |
|
/kernel/trunk/doc/arch/amd64 /kernel/trunk/doc/arch/ia32 /kernel/trunk/generic/src/synch/spinlock.c
|
1313 |
6671 d 1 h |
jermar |
/kernel/trunk/ |
Do not report possible deadlock on fb_lock.
This issue was causing troubles in connection
with slow framebuffer in simulated environment
when false positives triggered an infinite
recursion of attempts to report deadlock on
fb_lock using printf() and fb_putchar(). |
|
/kernel/trunk/arch/ia32/src/drivers/vesa.c /kernel/trunk/genarch/include/fb/fb.h /kernel/trunk/generic/src/synch/spinlock.c
|
1288 |
6679 d 1 h |
jermar |
/kernel/trunk/ |
Complete implementation of copy_from_uspace() and copy_to_uspace()
for amd64 and ia32. Other architectures still compile and run,
but need to implement their own assembly-only memcpy(), memcpy_from_uspace(),
memcpy_to_uspace() and their failover parts. For these architectures
only dummy implementations are provided. |
|
/kernel/trunk/generic/include/syscall/copy.h /kernel/trunk/generic/src/syscall/copy.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/include/interrupt.h /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/include/interrupt.h /kernel/trunk/arch/ia32/src/asm.S /kernel/trunk/arch/ia32/src/boot/boot.S /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia64/include/interrupt.h /kernel/trunk/arch/ia64/src/asm.S /kernel/trunk/arch/ia64/src/mm/tlb.c /kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/src/asm.S /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/include/exception.h /kernel/trunk/arch/ppc32/include/interrupt.h /kernel/trunk/arch/ppc32/src/asm.S /kernel/trunk/arch/ppc32/src/mm/tlb.c /kernel/trunk/arch/sparc64/include/interrupt.h /kernel/trunk/arch/sparc64/src/asm.S /kernel/trunk/generic/include/interrupt.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/page.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/ipc/irq.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/printf/vsnprintf.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/smp/ipi.c /kernel/trunk/generic/src/synch/waitq.c
|
1264 |
6683 d 1 h |
jermar |
/kernel/trunk/generic/ |
Improve Doxygen-comments. |
|
/kernel/trunk/generic/include/security/cap.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/interrupt/interrupt.c /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/lib/memstr.c /kernel/trunk/generic/src/lib/sort.c /kernel/trunk/generic/src/preempt/preemption.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/security/cap.c /kernel/trunk/generic/src/smp/ipi.c /kernel/trunk/generic/src/synch/condvar.c /kernel/trunk/generic/src/synch/futex.c /kernel/trunk/generic/src/synch/mutex.c /kernel/trunk/generic/src/synch/semaphore.c /kernel/trunk/generic/src/synch/spinlock.c /kernel/trunk/generic/src/syscall/syscall.c /kernel/trunk/generic/src/time/clock.c /kernel/trunk/generic/src/time/delay.c /kernel/trunk/generic/src/time/timeout.c
|
1248 |
6686 d 20 h |
jermar |
/kernel/trunk/ |
Add some @file doxygen comments and improve already existing comments. |
|
/kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/src/adt/bitmap.c /kernel/trunk/generic/src/adt/btree.c /kernel/trunk/generic/src/adt/hash_table.c /kernel/trunk/generic/src/adt/list.c /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/main/uinit.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/buddy.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/page.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/mm/tlb.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/the.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/condvar.c /kernel/trunk/generic/src/synch/futex.c /kernel/trunk/generic/src/synch/mutex.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/generic/src/synch/semaphore.c /kernel/trunk/generic/src/synch/waitq.c
|
1229 |
6690 d 0 h |
jermar |
/kernel/trunk/ |
Remove the outdated TODO file.
Improve doxygen comments here and there. |
|
/kernel/trunk/doc/TODO
/kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/include/mm/buddy.h /kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/buddy.c /kernel/trunk/generic/src/mm/page.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/synch/condvar.c /kernel/trunk/generic/src/synch/futex.c /kernel/trunk/generic/src/synch/mutex.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/generic/src/synch/semaphore.c /kernel/trunk/generic/src/synch/waitq.c
|
1224 |
6690 d 23 h |
cejka |
/kernel/trunk/ |
Fix pointers output format.
Fix format of slab and zones tables. |
|
/kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/ia32/src/mm/memory_init.c /kernel/trunk/generic/include/debug.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/interrupt/interrupt.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/buddy.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/synch/spinlock.c
|
1158 |
6704 d 22 h |
jermar |
/kernel/trunk/generic/ |
Replace list of all threads with B+tree of all threads.
Add function thread_exists() for querying existence of thread. |
|
/kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/waitq.c
|
1156 |
6704 d 23 h |
jermar |
/kernel/trunk/generic/ |
Sleeping in a wait queue can be now interrupted with
waitq_interrupt_sleep(). |
|
/kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/include/synch/synch.h /kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/src/synch/waitq.c
|
1153 |
6709 d 1 h |
jermar |
/kernel/trunk/generic/src/synch/ |
Because of another race condition, futex_wakeup() needs to be able to allocate and initialize the kernel futex structure too. |
|
/kernel/trunk/generic/src/synch/futex.c
|
1117 |
6721 d 16 h |
jermar |
/kernel/trunk/generic/ |
Improved futexes. (kernel part) |
|
/kernel/trunk/generic/include/synch/futex.h /kernel/trunk/generic/src/synch/futex.c
|
1109 |
6722 d 15 h |
jermar |
/kernel/trunk/ |
Basic futex. Prototype implementation. |
|
/kernel/trunk/generic/include/synch/futex.h /kernel/trunk/generic/src/synch/futex.c
/kernel/trunk/Makefile /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/syscall/syscall.c
|