Subversion Repositories HelenOS

Rev

Go to most recent revision | Hide changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
2450 6230 d 5 h mencl /branches/rcu/kernel/ Repaired avl and extavl tree timeout unregister and delete_min. These
faults caused problems with initializing cpus and they appeared only in
multi processor systems.
 
/branches/rcu/kernel/generic/src/adt/avl.c
/branches/rcu/kernel/generic/src/adt/extavl.c
/branches/rcu/kernel/generic/src/time/clock.c
/branches/rcu/kernel/generic/src/time/timeout.c
/branches/rcu/kernel/test/timeout/timeoutbench1.c
2449 6231 d 14 h decky /trunk/uspace/rd/ remove unnecessary includes  
/trunk/uspace/rd/rd.c
2448 6232 d 6 h jermar /branches/arm/kernel/arch/arm32/src/cpu/ Start the CPU identification string with cpu[0-9].  
/branches/arm/kernel/arch/arm32/src/cpu/cpu.c
2447 6232 d 7 h jermar /trunk/kernel/generic/src/main/ Split accidently joined lines.  
/trunk/kernel/generic/src/main/uinit.c
2446 6232 d 7 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
2445 6232 d 9 h decky /trunk/ initial merge of branches/fs
(not finished, huge cleanup is needed)
 
/trunk/uspace/libc/generic/io/file.c
/trunk/uspace/libc/include/io/file.h
/trunk/uspace/rd/rd.h
/trunk/kernel/doc/AUTHORS
/trunk/kernel/generic/include/errno.h
/trunk/kernel/generic/include/lib/rd.h
/trunk/kernel/generic/src/lib/rd.c
/trunk/kernel/generic/src/main/kinit.c
/trunk/uspace/libc/include/ipc/services.h
/trunk/uspace/rd/rd.c
2444 6233 d 0 h jermar /trunk/kernel/ First fixes for suncc support.
It is going to be a long way...
 
/trunk/kernel/Makefile
/trunk/kernel/arch/ia32/include/asm.h
/trunk/kernel/generic/include/mm/slab.h
2443 6233 d 0 h jermar /trunk/ sscc -> suncc  
/trunk/HelenOS.config
/trunk/boot/boot.config
/trunk/kernel/Makefile
/trunk/kernel/kernel.config
/trunk/uspace/uspace.config
2442 6233 d 1 h jermar /trunk/ Add dummy option for Sun Studio C Compiler.
For each architecture, offer only compilers that support the target.
 
/trunk/HelenOS.config
/trunk/boot/boot.config
/trunk/kernel/kernel.config
/trunk/uspace/uspace.config
2441 6233 d 1 h decky /trunk/kernel/ fix ICC compilation  
/trunk/kernel/arch/amd64/include/debugger.h
/trunk/kernel/arch/amd64/src/debugger.c
/trunk/kernel/arch/ia32/include/asm.h
/trunk/kernel/arch/ia32/include/context.h
/trunk/kernel/arch/ia32/include/mm/frame.h
/trunk/kernel/arch/ia32/include/smp/apic.h
/trunk/kernel/arch/ia32/src/ddi/ddi.c
/trunk/kernel/arch/ia32/src/mm/page.c
/trunk/kernel/arch/ia32/src/proc/scheduler.c
/trunk/kernel/arch/ia32/src/smp/apic.c
/trunk/kernel/arch/ia32/src/smp/mps.c
/trunk/kernel/arch/ia32/src/smp/smp.c
/trunk/kernel/genarch/src/acpi/acpi.c
/trunk/kernel/generic/include/interrupt.h
/trunk/kernel/generic/src/printf/printf_core.c
2440 6233 d 2 h jermar /trunk/kernel/generic/ Fix the problem with sys_thread_create() by splitting the create and attach functionality of
thread_create(). Now it is possible to specify a flag that will cause thread_create() to only allocate and
initialize the thread structure. A call to thread_attach() will make the thread visible to the system.
This arrangement makes it easier to undo creation of a thread in case of a failure in sys_thread_create().
 
/trunk/kernel/generic/include/proc/thread.h
/trunk/kernel/generic/src/proc/thread.c
2439 6233 d 2 h decky /trunk/kernel/arch/ia32/src/ fix ICC compilation  
/trunk/kernel/arch/ia32/src/drivers/ega.c
/trunk/kernel/arch/ia32/src/drivers/i8254.c
/trunk/kernel/arch/ia32/src/drivers/i8259.c
/trunk/kernel/arch/ia32/src/ia32.c
/trunk/kernel/arch/ia32/src/interrupt.c
/trunk/kernel/arch/ia32/src/mm/tlb.c
2438 6233 d 2 h decky /trunk/ update for new compiler configuration scheme  
/trunk/boot/arch/mips32/loader/Makefile
/trunk/boot/arch/ppc32/loader/Makefile
/trunk/boot/arch/ppc64/loader/Makefile
/trunk/boot/arch/sparc64/loader/Makefile
/trunk/boot/boot.config
/trunk/kernel/arch/ia32/Makefile.inc
/trunk/tools/build
/trunk/uspace/libc/Makefile.toolchain
/trunk/uspace/uspace.config
2437 6233 d 2 h decky /trunk/ experimental support for ICC
(the sources has to be modified to avoid ICC compiler warnings)
 
/trunk/HelenOS.config
/trunk/kernel/Makefile
/trunk/kernel/kernel.config
2436 6234 d 3 h jermar /trunk/ Fix two memory leaks.

In kernel, kernel_uarg structure needs to be deallocated when a thread
with userspace context is destroyed.

In userspace, the return value of the SYS_THREAD_CREATE must be checked
for error conditions and in case of error, uarg and stack must be freed
up.
 
/trunk/kernel/generic/src/proc/task.c
/trunk/kernel/generic/src/proc/thread.c
/trunk/uspace/libc/generic/thread.c
2435 6236 d 17 h jelen /branches/fs/ Doxygen documentation format  
/branches/fs/uspace/fs/tree.txt
/branches/fs/kernel/generic/src/lib/rd.c
/branches/fs/uspace/cat/cat.c
/branches/fs/uspace/cat/cat.h
/branches/fs/uspace/cat/cat.standard.c
/branches/fs/uspace/fs/block.c
/branches/fs/uspace/fs/block.h
/branches/fs/uspace/fs/const.h
/branches/fs/uspace/fs/dir.c
/branches/fs/uspace/fs/dir.h
/branches/fs/uspace/fs/errno.h
/branches/fs/uspace/fs/file.h
/branches/fs/uspace/fs/filedes.c
/branches/fs/uspace/fs/fproc.h
/branches/fs/uspace/fs/fs.c
/branches/fs/uspace/fs/fs.h
/branches/fs/uspace/fs/glo.c
/branches/fs/uspace/fs/glo.h
/branches/fs/uspace/fs/inode.c
/branches/fs/uspace/fs/inode.h
/branches/fs/uspace/fs/limits.h
/branches/fs/uspace/fs/open.c
/branches/fs/uspace/fs/param.h
/branches/fs/uspace/fs/path.c
/branches/fs/uspace/fs/printing.c
/branches/fs/uspace/fs/proto.h
/branches/fs/uspace/fs/read.c
/branches/fs/uspace/fs/stadir.c
/branches/fs/uspace/fs/stat.h
/branches/fs/uspace/fs/super.c
/branches/fs/uspace/fs/super.h
/branches/fs/uspace/fs/table.c
/branches/fs/uspace/fs/type.h
/branches/fs/uspace/fs/utility.c
/branches/fs/uspace/rd/rd.c
/branches/fs/uspace/rd/rd.h
/branches/fs/uspace/share/base_const.h
/branches/fs/uspace/share/connect.c
/branches/fs/uspace/share/message.c
/branches/fs/uspace/share/message.h
/branches/fs/uspace/share/shared_proto.h
2434 6236 d 18 h jelen /branches/fs/uspace/cat/ Cat user file library update  
/branches/fs/uspace/cat/cat.standard.c
2433 6236 d 18 h jelen /branches/fs/uspace/ Revert changes from migration to trunk + file user interface  
/branches/fs/uspace/libc/generic/io/file.c
/branches/fs/uspace/libc/include/io/file.h
/branches/fs/uspace/cat/cat.c
/branches/fs/uspace/libc/Makefile
2432 6236 d 18 h jelen /branches/fs/boot/arch/ Boot config for ramdisk  
/branches/fs/boot/arch/amd64/ramdisk
/branches/fs/boot/arch/ia32xen/ramdisk
/branches/fs/boot/arch/ia32xen/ramdisk/Makefile.inc
/branches/fs/boot/arch/ia32xen/ramdisk/ramdisk.header
/branches/fs/boot/arch/ia32xen/ramdisk/ramdisk.img.raw
/branches/fs/boot/arch/mips32/ramdisk
/branches/fs/boot/arch/mips32/ramdisk/Makefile.inc
/branches/fs/boot/arch/mips32/ramdisk/ramdisk.header
/branches/fs/boot/arch/mips32/ramdisk/ramdisk.img
/branches/fs/boot/arch/mips32/ramdisk/ramdisk.img.raw
/branches/fs/boot/arch/ppc32/ramdisk
/branches/fs/boot/arch/ppc32/ramdisk/Makefile.inc
/branches/fs/boot/arch/ppc32/ramdisk/ramdisk.header
/branches/fs/boot/arch/ppc32/ramdisk/ramdisk.img
/branches/fs/boot/arch/ppc32/ramdisk/ramdisk.img.raw
/branches/fs/boot/arch/ppc64/ramdisk
/branches/fs/boot/arch/ppc64/ramdisk/Makefile.inc
/branches/fs/boot/arch/ppc64/ramdisk/ramdisk.header
/branches/fs/boot/arch/ppc64/ramdisk/ramdisk.img.raw
/branches/fs/boot/arch/amd64/Makefile.inc
/branches/fs/boot/arch/amd64/grub/menu.lst
/branches/fs/boot/arch/ia32xen/Makefile.inc
/branches/fs/boot/arch/ia32xen/grub/menu.debug.lst
/branches/fs/boot/arch/ia32xen/grub/menu.lst
/branches/fs/boot/arch/mips32/Makefile.inc
/branches/fs/boot/arch/mips32/loader/Makefile
/branches/fs/boot/arch/ppc32/Makefile.inc
/branches/fs/boot/arch/ppc32/loader/Makefile
/branches/fs/boot/arch/ppc64/Makefile.inc
/branches/fs/boot/arch/ppc64/loader/Makefile
2431 6237 d 1 h mencl /branches/rcu/kernel/ Repaired extavl and extavlrel data structures, added benchmark tests for avl based data structures and
simulating timeout mechanismus
 
/branches/rcu/kernel/test/timeout/timeoutbench1.c
/branches/rcu/kernel/test/timeout/timeoutbench1.def
/branches/rcu/kernel/Makefile
/branches/rcu/kernel/generic/src/adt/extavl.c
/branches/rcu/kernel/generic/src/adt/extavlrel.c
/branches/rcu/kernel/generic/src/time/timeout.c
/branches/rcu/kernel/test/avltree/avltree1.c
/branches/rcu/kernel/test/test.c
/branches/rcu/kernel/test/test.h

Show All