Subversion Repositories HelenOS

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
3576 5695 d 12 h vana /trunk/kernel/generic/src/main/ On Itanium there is nead to preserve at least gp when switching APs to separate stack. Safer way is to save all context and to do it on all platforms.  
3566 5698 d 9 h svoboda /trunk/ Set meaningful names for loaded programs. Now 'tasks' kconsole command is much less obscure.  
3438 5750 d 7 h svoboda /trunk/ Merge syscall tracer (trace) and relevant part of udebug interface from tracing to trunk.  
3362 5774 d 0 h jermar /trunk/kernel/generic/ Fix processing of answers to forwarded masqueraded calls.  
3222 5821 d 3 h svoboda /trunk/ Merge program-loader related stuff from dynload branch to trunk. (huge)  
3193 5828 d 22 h jermar /trunk/kernel/ cstyle fixes  
3181 5838 d 8 h jermar /trunk/kernel/generic/src/ cstyle for kinit.c and scheduler.c  
3175 5840 d 7 h jermar /trunk/kernel/generic/src/main/ Don't print anything before the kernel initializes the first THE
structure. This fixes a regression introduced in r3061. If anything
worked from r3061 until now, it was only due to luck. arm32 was not
that lucky when built with gcc 4.3.1.
 
3097 5855 d 0 h decky /trunk/kernel/ resurrect klog  
3061 5856 d 4 h decky /trunk/kernel/generic/src/main/ debugging output of kernel initialization  
3060 5856 d 4 h decky /trunk/kernel/generic/src/main/ run init tasks after they are all loaded  
3029 5860 d 4 h decky /trunk/kernel/generic/ fix kernel ramdisk support  
2746 5953 d 2 h decky /trunk/kernel/ start merging tasklets (more or less a rewrite)  
2745 5953 d 7 h decky /trunk/ code cleanup (mostly signed/unsigned)
allow extra compiler warnings
 
2725 5974 d 4 h decky /trunk/kernel/ remove config.memory_size, get_memory_size() and memory_init.{c|d}
the amount of available memory can be calculated from the sizes of the zones
add FRAMES2SIZE, SIZE2KB and SIZE2MB functions/macros (code readability)
 
2701 5986 d 7 h jermar /trunk/kernel/ Fix cstyle and (c) to 2008.  
2447 6224 d 3 h jermar /trunk/kernel/generic/src/main/ Split accidently joined lines.  
2446 6224 d 3 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.
 
2445 6224 d 5 h decky /trunk/ initial merge of branches/fs
(not finished, huge cleanup is needed)
 
2227 6277 d 13 h decky /trunk/kernel/ start shutdown infrastructure  
2223 6277 d 19 h decky /trunk/kernel/generic/src/ add mcall0 command (calling a function on each CPU)  
2118 6340 d 4 h decky /trunk/kernel/generic/src/ explicit typecast, fix signed/unsigned comparison  
2089 6348 d 5 h decky /trunk/ huge type system cleanup
remove cyclical type dependencies across multiple header files
many minor coding style fixes
 
2087 6349 d 1 h jermar /trunk/kernel/ Indentaion and formatting changes even Martin will like :-)  
2071 6358 d 22 h jermar /trunk/ (c) versus (C)  
2070 6359 d 6 h jermar /trunk/ Rather big indentation and formatting changes.
More inteligent long line wrapping.
 
2066 6371 d 3 h jermar /trunk/kernel/generic/src/main/ Formatting changes.
Bump year in kernel copyright.
 
2048 6391 d 0 h jermar /trunk/ Formatting and indentation changes.  
2042 6393 d 2 h decky /trunk/kernel/ introduce uncounted threads, whose accounting doesn't affect accumulated task accounting
run tests in kconsole thread again
 
2039 6393 d 6 h decky /trunk/kernel/generic/ accumulate task accounting, run tests as separate kernel task  
2019 6396 d 0 h decky /trunk/kernel/ prepare for new test infrastructure  
2015 6397 d 22 h jermar /trunk/ Rework support for virtually indexed cache.
Instead of repeatedly flushing the data cache, which was a huge overkill, refuse to create an illegal address alias
in the kernel (again) and allocate appropriate page color in userspace instead. Extend the detection also to
SYS_PHYSMEM_MAP syscall.

Add support for tracking physical memory areas mappable by SYS_PHYSMEM_MAP.

Lots of coding style changes.
 
2005 6407 d 3 h decky /trunk/ update rd  
2002 6407 d 5 h decky /trunk/kernel/generic/ rd work  
2000 6409 d 8 h decky /trunk/kernel/ move files to more proper locations  
1999 6409 d 8 h decky /trunk/ start RAM disk support  
1901 6472 d 4 h jermar /trunk/kernel/ Make SMP related parts of main.c more generic.
Move initialization of local APIC to architecture specific code.
Add arch_post_cpu_init() to support the above.
 
1894 6478 d 20 h jermar /trunk/ Add balloc() (a.k.a boot allocator):
- balloc() only needs to know how to allocate memory.
- Memory allocated via balloc() is supposed to be passed to kernel and never freed by boot itself.
- make kernel aware of boot allocations

More work on OFW device tree:
- use balloc() to efficiently and safely allocate memory for the canonical copy of the device tree

sparc64 boot:
- pass OFW device tree root node pointer to kernel
 
1855 6500 d 3 h jermar /trunk/kernel/ sparc64 work.

Fix bug introduced in revision 1852. When fixing CWP,
the input registers of the current window (i.e. output
registers of the window belonging to the interrupted
context) must be preserved. Preserve those registers
in memory. Sure there exist more efficient ways how to
copy the inputs.

Simplify before_thread_runs_arch(), resp. after_thread_ran_arch(),
and make them install, resp. uninstall, DTLB locked mapping for
eventual userspace window buffer.
 
1854 6500 d 8 h jermar /trunk/kernel/ Define architecture-specific thread sub-constructors and sub-destructors on all architectures.
Define the THREAD_FLAG_USPACE which means that the thread runs in user space.
The forementioned changes allow for allocating of user window buffer on sparc64
threads that execute in userspace.

A lot of formatting and indentation fixes.