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
2444 6202 d 23 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
2441 6203 d 0 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 6203 d 1 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
2436 6204 d 2 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
2359 6216 d 12 h jermar /trunk/ Improve comments for the IPC subsystem.
Fix formatting and indentation.
 
/trunk/kernel/generic/src/ipc/ipcrsc.c
/trunk/kernel/generic/src/ipc/sysipc.c
/trunk/uspace/libc/generic/ipc.c
2319 6224 d 12 h decky /trunk/kernel/generic/src/console/ run mcall only on active CPUs  
/trunk/kernel/generic/src/console/cmd.c
2310 6227 d 3 h jermar /trunk/kernel/generic/ Cleanup the waitq_wakeup() interface.
Replace numeric constants (i.e. 0)
and boolean constants (i.e. false) with
more readable WAKEUP_FIRST. Also change the
type of the second argument of waitq_wakeup()
to a newly introduced type wakeup_mode_t.

Fix behaviour of waitq_wakeup() in case
that WAKEUP_ALL semantics is required
but no threads are sleeping in the wait
queue. This is a similar fix to that of
Jan Hudecek committed in the RCU branch,
but, IMHO, is more straightforward and
also doesn't eat up previous missed
wakeups.
 
/trunk/kernel/generic/include/synch/waitq.h
/trunk/kernel/generic/src/ipc/ipc.c
/trunk/kernel/generic/src/proc/scheduler.c
/trunk/kernel/generic/src/synch/waitq.c
2285 6239 d 11 h jermar /trunk/kernel/generic/src/proc/ Formatting and indentation fixes.  
/trunk/kernel/generic/src/proc/scheduler.c
2275 6244 d 3 h decky /trunk/kernel/generic/ add fancy uptime kconsole command  
/trunk/kernel/generic/include/time/clock.h
/trunk/kernel/generic/src/console/cmd.c
/trunk/kernel/generic/src/time/clock.c
2272 6245 d 4 h jermar /trunk/kernel/ Indentation and formatting fixes.  
/trunk/kernel/arch/sparc64/include/barrier.h
/trunk/kernel/arch/sparc64/src/cpu/cpu.c
/trunk/kernel/arch/sparc64/src/mm/as.c
/trunk/kernel/arch/sparc64/src/proc/scheduler.c
/trunk/kernel/arch/sparc64/src/proc/thread.c
/trunk/kernel/arch/sparc64/src/smp/ipi.c
/trunk/kernel/arch/sparc64/src/smp/smp.c
/trunk/kernel/generic/src/lib/memstr.c
2268 6246 d 3 h jermar /trunk/kernel/generic/ Document and assert proper usage of THREAD_FLAG_WIRED.
Original patch by Jan Hudecek.
 
/trunk/kernel/generic/include/proc/thread.h
/trunk/kernel/generic/src/proc/thread.c
2229 6255 d 8 h jermar /trunk/ Revert some of the changes introduced in revision 2209.
I think it is not correct to remove serialization of pseudo threads in printf_core.c.
With thread-level futex serialization, several pseudo threads running in one thread could easily deadlock
the task.

Add a dedicated futex serialization to thread1.c test only.
 
/trunk/kernel/generic/src/proc/thread.c
/trunk/uspace/libc/arch/sparc64/src/thread_entry.s
/trunk/uspace/libc/generic/io/printf_core.c
/trunk/uspace/libc/generic/io/vprintf.c
/trunk/uspace/tester/fault/fault1.c
/trunk/uspace/tester/fault/fault2.c
/trunk/uspace/tester/thread/thread1.c
2227 6255 d 16 h decky /trunk/kernel/ start shutdown infrastructure  
/trunk/kernel/generic/src/main/shutdown.c
/trunk/kernel/Makefile
/trunk/kernel/arch/amd64/src/pm.c
/trunk/kernel/arch/arm32/src/arm32.c
/trunk/kernel/arch/ia32/src/pm.c
/trunk/kernel/arch/ia32xen/src/ia32xen.c
/trunk/kernel/arch/ia64/src/ia64.c
/trunk/kernel/arch/mips32/src/mips32.c
/trunk/kernel/arch/ppc32/src/drivers/cuda.c
/trunk/kernel/arch/ppc64/src/ppc64.c
/trunk/kernel/arch/sparc64/src/sparc64.c
/trunk/kernel/generic/include/arch.h
/trunk/kernel/generic/include/proc/task.h
/trunk/kernel/generic/src/console/cmd.c
/trunk/kernel/generic/src/proc/task.c
/trunk/kernel/kernel.config
2224 6255 d 22 h decky /trunk/kernel/generic/src/console/ detach joined thread  
/trunk/kernel/generic/src/console/cmd.c
2223 6255 d 22 h decky /trunk/kernel/generic/src/ add mcall0 command (calling a function on each CPU)  
/trunk/kernel/generic/src/console/cmd.c
/trunk/kernel/generic/src/main/kinit.c
2222 6256 d 1 h decky /trunk/kernel/ map kernel pages explicitly as writable (this solves compatibility issues with Intel Core 2)
make VESA framebuffer initialization more robust
 
/trunk/kernel/arch/amd64/src/boot/boot.S
/trunk/kernel/arch/amd64/src/mm/page.c
/trunk/kernel/arch/ia32/src/boot/boot.S
/trunk/kernel/arch/ia32/src/mm/page.c
/trunk/kernel/arch/ia32/src/smp/smp.c
/trunk/kernel/arch/ia32xen/src/smp/smp.c
/trunk/kernel/arch/ppc32/src/mm/page.c
/trunk/kernel/arch/ppc64/src/mm/page.c
/trunk/kernel/genarch/src/acpi/acpi.c
/trunk/kernel/generic/src/mm/page.c
2218 6256 d 23 h decky /trunk/kernel/ support the possibility to send EOI or Interrupt Acknowledgement
prior to processing the interrupt
(this is essential on some architectures to prevent preemption deadlock)
 
/trunk/kernel/arch/amd64/src/interrupt.c
/trunk/kernel/arch/ia32/src/drivers/i8254.c
/trunk/kernel/arch/ia32/src/interrupt.c
/trunk/kernel/arch/ia32/src/smp/apic.c
/trunk/kernel/arch/ia32xen/src/interrupt.c
/trunk/kernel/arch/ppc32/src/interrupt.c
/trunk/kernel/arch/ppc64/src/interrupt.c
/trunk/kernel/generic/include/ddi/irq.h
/trunk/kernel/generic/src/ddi/irq.c
2216 6257 d 2 h decky /trunk/ make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls
 
/trunk/kernel/arch/amd64/include/types.h
/trunk/kernel/arch/arm32/include/types.h
/trunk/kernel/arch/ia32/include/types.h
/trunk/kernel/arch/ia32xen/include/types.h
/trunk/kernel/arch/ia64/include/types.h
/trunk/kernel/arch/mips32/include/types.h
/trunk/kernel/arch/ppc32/include/types.h
/trunk/kernel/arch/ppc64/include/types.h
/trunk/kernel/arch/sparc64/include/types.h
/trunk/kernel/generic/include/interrupt.h
/trunk/kernel/generic/include/proc/task.h
/trunk/kernel/generic/include/proc/thread.h
/trunk/kernel/generic/src/adt/btree.c
/trunk/kernel/generic/src/console/cmd.c
/trunk/kernel/generic/src/ipc/ipc.c
/trunk/kernel/generic/src/proc/scheduler.c
/trunk/kernel/generic/src/proc/task.c
/trunk/kernel/generic/src/proc/thread.c
/trunk/kernel/generic/src/syscall/syscall.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/mm/slab1.c
/trunk/kernel/test/mm/slab2.c
/trunk/kernel/test/synch/rwlock3.c
/trunk/kernel/test/synch/rwlock4.c
/trunk/kernel/test/synch/semaphore2.c
/trunk/kernel/test/thread/thread1.c
/trunk/uspace/libc/generic/thread.c
/trunk/uspace/libc/include/thread.h
/trunk/uspace/tester/thread/thread1.c
2211 6257 d 4 h decky /trunk/kernel/generic/src/synch/ reflect the renaming of printflock to printf_lock  
/trunk/kernel/generic/src/synch/spinlock.c
2208 6257 d 4 h decky /trunk/kernel/generic/ use spinlock only on console output, not other print functions
cleanup
 
/trunk/kernel/generic/include/print.h
/trunk/kernel/generic/include/printf/printf_core.h
/trunk/kernel/generic/src/printf/printf_core.c
/trunk/kernel/generic/src/printf/snprintf.c
/trunk/kernel/generic/src/printf/vprintf.c
/trunk/kernel/generic/src/printf/vsnprintf.c
/trunk/kernel/generic/src/printf/vsprintf.c

Show All