Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1636 |
6652 d 19 h |
jermar |
/kernel/trunk/ |
Move comment.
Do TLB shootdown also when allocating new ASID. |
|
/kernel/trunk/genarch/src/mm/asid.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
1595 |
6653 d 12 h |
palkovsky |
/kernel/trunk/ |
Added kernel circular buffer klog.
Added automatic killing of tasks raising inappropriate exceptions.
TODO: Fix vsnprintf return value(and behaviour according to specs) and remove workaround in klog. |
|
/kernel/trunk/generic/include/console/klog.h /kernel/trunk/generic/src/console/klog.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/include/interrupt.h /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/include/interrupt.h /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/ia64/include/interrupt.h /kernel/trunk/arch/ia64/src/interrupt.c /kernel/trunk/arch/mips32/include/arg.h /kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/include/exception.h /kernel/trunk/arch/ppc32/src/interrupt.c /kernel/trunk/arch/ppc64/include/exception.h /kernel/trunk/arch/sparc64/include/interrupt.h /kernel/trunk/generic/include/interrupt.h /kernel/trunk/generic/include/ipc/irq.h /kernel/trunk/generic/include/ipc/sysipc.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/include/stackarg.h /kernel/trunk/generic/include/stdarg.h /kernel/trunk/generic/src/interrupt/interrupt.c /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/irq.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/proc/thread.c
|
1589 |
6654 d 0 h |
jermar |
/kernel/trunk/generic/src/ |
Improve comments regarding liveliness of threads and tasks. |
|
/kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
1585 |
6654 d 5 h |
jermar |
/kernel/trunk/generic/ |
Kill task when its main thread exits. |
|
/kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
1581 |
6654 d 11 h |
jermar |
/kernel/trunk/generic/src/ |
Detach kmp thread after joining it.
Extend assertion in thread_destroy() to not panic when threads are destroyed in their Unded state. |
|
/kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/proc/thread.c
|
1579 |
6654 d 21 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
|
1571 |
6655 d 2 h |
jermar |
/kernel/trunk/generic/ |
thread_join_timeout() and thread_detach() implementation.
Needs more thorough testing. |
|
/kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c
|
1502 |
6657 d 7 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
|
1458 |
6659 d 21 h |
palkovsky |
/kernel/trunk/ |
Added console support to gxemul.
Wider information in thread list. |
|
/kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/contrib/conf/gxemul.sh /kernel/trunk/generic/src/proc/thread.c
|
1288 |
6685 d 7 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
|
1248 |
6693 d 2 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
|
1210 |
6699 d 6 h |
vana |
/kernel/trunk/ |
Incomplete VHPT walker support for Itanium |
|
/kernel/trunk/arch/ia64/include/mm/vhpt.h /kernel/trunk/arch/ia64/src/mm/vhpt.c
/kernel/trunk/Makefile /kernel/trunk/arch/ia64/Makefile.inc /kernel/trunk/arch/ia64/include/mm/page.h /kernel/trunk/arch/ia64/src/mm/page.c /kernel/trunk/arch/ia64/src/mm/tlb.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/kernel.config
|
1196 |
6704 d 6 h |
cejka |
/kernel/trunk/ |
Printf ported back from uspace to kernel.
Printf calls changed to match new conventions. |
|
/kernel/trunk/arch/amd64/src/debugger.c /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/amd64/src/mm/memory_init.c /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/ia32/src/mm/memory_init.c /kernel/trunk/arch/ia32/src/smp/apic.c /kernel/trunk/arch/ia64/src/interrupt.c /kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/Makefile.inc /kernel/trunk/arch/ppc32/src/mm/memory_init.c /kernel/trunk/arch/ppc64/src/mm/memory_init.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/genarch/include/softint/division.h /kernel/trunk/genarch/src/acpi/acpi.c /kernel/trunk/genarch/src/acpi/matd.c /kernel/trunk/genarch/src/i8042/i8042.c /kernel/trunk/genarch/src/softint/division.c /kernel/trunk/generic/include/print.h /kernel/trunk/generic/src/adt/btree.c /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/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/buddy.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/time/clock.c /kernel/trunk/generic/src/time/timeout.c /kernel/trunk/test/fpu/fpu1/test.c /kernel/trunk/test/mm/falloc1/test.c /kernel/trunk/test/mm/falloc2/test.c /kernel/trunk/test/mm/mapping1/test.c /kernel/trunk/test/print/print1/test.c /kernel/trunk/test/synch/rwlock4/test.c /kernel/trunk/test/synch/rwlock5/test.c
|
1184 |
6707 d 5 h |
jermar |
/kernel/trunk/ |
Move arch/thread.h to arch/proc/thread.h on all architectures.
Replace ARCH_THREAD_DATA with new thread_arch_t arch on all architectures.
Similarily, add task_arch_t arch on all architectures.
On amd64 and ia32, grow the TSS segment by 64K + 1B to support IO port
permission bitmap. For the same reason, define per task IO port permission bitmaps
on ia32 and amd64. |
|
/kernel/trunk/arch/amd64/include/proc /kernel/trunk/arch/amd64/include/proc/task.h /kernel/trunk/arch/amd64/include/proc/thread.h /kernel/trunk/arch/ia32/include/proc /kernel/trunk/arch/ia32/include/proc/task.h /kernel/trunk/arch/ia32/include/proc/thread.h /kernel/trunk/arch/ia64/include/proc /kernel/trunk/arch/ia64/include/proc/task.h /kernel/trunk/arch/ia64/include/proc/thread.h /kernel/trunk/arch/mips32/include/proc /kernel/trunk/arch/mips32/include/proc/task.h /kernel/trunk/arch/mips32/include/proc/thread.h /kernel/trunk/arch/ppc32/include/proc /kernel/trunk/arch/ppc32/include/proc/task.h /kernel/trunk/arch/ppc32/include/proc/thread.h /kernel/trunk/arch/ppc64/include/proc /kernel/trunk/arch/ppc64/include/proc/task.h /kernel/trunk/arch/ppc64/include/proc/thread.h /kernel/trunk/arch/sparc64/include/proc /kernel/trunk/arch/sparc64/include/proc/task.h /kernel/trunk/arch/sparc64/include/proc/thread.h
/kernel/trunk/arch/amd64/include/thread.h /kernel/trunk/arch/ia32/include/thread.h /kernel/trunk/arch/ia64/include/thread.h /kernel/trunk/arch/mips32/include/thread.h /kernel/trunk/arch/ppc32/include/thread.h /kernel/trunk/arch/ppc64/include/thread.h /kernel/trunk/arch/sparc64/include/thread.h
/kernel/trunk/arch/amd64/include/pm.h /kernel/trunk/arch/amd64/src/amd64.c /kernel/trunk/arch/amd64/src/proc/scheduler.c /kernel/trunk/arch/amd64/src/proc/thread.c /kernel/trunk/arch/ia32/include/pm.h /kernel/trunk/arch/ia32/src/ia32.c /kernel/trunk/arch/ia32/src/proc/scheduler.c /kernel/trunk/arch/ia32/src/proc/thread.c /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/proc/thread.c
|
1177 |
6708 d 7 h |
jermar |
/kernel/trunk/generic/ |
Modify B+tree node key width to be 64-bit wide on all platforms. |
|
/kernel/trunk/generic/include/adt/btree.h /kernel/trunk/generic/src/adt/btree.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
1171 |
6708 d 10 h |
jermar |
/kernel/trunk/ |
Initialize ARCH_THREAD_DATA on all architectures.
On ia32 and amd64 this fixes bug caused by uninitialized TLS pointer. |
|
/kernel/trunk/arch/amd64/src/proc/thread.c /kernel/trunk/arch/ia32/src/proc/thread.c
/kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia64/include/thread.h /kernel/trunk/arch/mips32/include/thread.h /kernel/trunk/arch/ppc32/include/thread.h /kernel/trunk/arch/ppc64/include/thread.h /kernel/trunk/arch/sparc64/include/thread.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/proc/thread.c
|
1158 |
6711 d 4 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
|
1138 |
6724 d 2 h |
jermar |
/kernel/trunk/ |
CPU stacks must have two frames on ia64.
Make sure both thread stack frames are mapped in before_thread_runs_arch().
Take STACK_FRAMES into account during kernel memory layout initialization in main_bsp(). |
|
/kernel/trunk/arch/ia64/include/context.h /kernel/trunk/arch/ia64/include/mm/tlb.h /kernel/trunk/arch/ia64/src/ivt.S /kernel/trunk/arch/ia64/src/proc/scheduler.c /kernel/trunk/contrib/conf/msim.conf /kernel/trunk/generic/include/config.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/proc/thread.c
|
1115 |
6728 d 7 h |
jermar |
/kernel/trunk/generic/src/proc/ |
Fix kcpulb() to change state of the migrated thread to Entering so that thread_ready() won't panic() on violated assertion.
Make print out of threads and tasks more dense again. |
|
/kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
1104 |
6729 d 2 h |
jermar |
/kernel/trunk/ |
Define atomic_t only once in atomic.h
Change the encapsulated counter type to long so that it supports negative values as well. |
|
/kernel/trunk/generic/include/atomic.h
/kernel/trunk/arch/amd64/include/atomic.h /kernel/trunk/arch/amd64/src/proc/scheduler.c /kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/arch/ia32/src/userspace.c /kernel/trunk/arch/ia64/include/atomic.h /kernel/trunk/arch/ia64/src/mm/tlb.c /kernel/trunk/arch/mips32/include/atomic.h /kernel/trunk/arch/ppc32/include/atomic.h /kernel/trunk/arch/sparc64/include/atomic.h /kernel/trunk/generic/include/func.h /kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/include/proc/scheduler.h /kernel/trunk/generic/include/synch/spinlock.h /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/console/console.c /kernel/trunk/generic/src/mm/tlb.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/spinlock.c /kernel/trunk/generic/src/time/clock.c /kernel/trunk/test/atomic/atomic1/test.c /kernel/trunk/test/debug/mips1/test.c /kernel/trunk/test/fault/fault1/test.c /kernel/trunk/test/fpu/fpu1/test.c /kernel/trunk/test/fpu/mips1/test.c /kernel/trunk/test/fpu/sse1/test.c /kernel/trunk/test/mm/falloc2/test.c /kernel/trunk/test/synch/rwlock1/test.c /kernel/trunk/test/synch/rwlock2/test.c /kernel/trunk/test/synch/rwlock3/test.c /kernel/trunk/test/synch/rwlock4/test.c /kernel/trunk/test/synch/rwlock5/test.c /kernel/trunk/test/synch/semaphore1/test.c /kernel/trunk/test/synch/semaphore2/test.c /kernel/trunk/test/thread/thread1/test.c
|