Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1144 |
6792 d 2 h |
jermar |
/kernel/trunk/ |
Completed B+-tree support.
Enable btree_remove().
Reorder some static functions and group them together.
Fix order of nodes in the leaf_head list. |
|
/kernel/trunk/generic/src/adt/btree.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/test/btree/btree1/test.c
|
1142 |
6792 d 10 h |
jermar |
/kernel/trunk/ |
Update B+-tree code.
The code is there, btree_remove() has not been tested yet.
(Fixes, if any, are to come later today.) |
|
/kernel/trunk/generic/include/adt/btree.h /kernel/trunk/generic/src/adt/btree.c /kernel/trunk/test/btree/btree1/test.c
|
1141 |
6793 d 7 h |
palkovsky |
/kernel/trunk/generic/src/ipc/ |
Completed ipc_cleanup, it should be somehow integrated into
cleanup of task. The function can sleep. |
|
/kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1140 |
6794 d 2 h |
jermar |
/kernel/trunk/generic/ |
Change B+-tree from 2-3-4 tree to 2-3-4-5 tree by adding space for the fourth key.
This should make key removal easier. |
|
/kernel/trunk/generic/include/adt/btree.h /kernel/trunk/generic/src/adt/btree.c
|
1139 |
6794 d 2 h |
jermar |
/kernel/trunk/generic/include/ |
Fix comments. |
|
/kernel/trunk/generic/include/arch.h /kernel/trunk/generic/include/mm/buddy.h /kernel/trunk/generic/include/synch/futex.h
|
1138 |
6797 d 4 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
|
1137 |
6797 d 8 h |
vana |
/kernel/trunk/arch/ia64/include/ |
context_set patch in kernel for changed allocation of ia64 RSE and stack |
|
/kernel/trunk/arch/ia64/include/context.h
|
1136 |
6798 d 2 h |
jermar |
/kernel/trunk/generic/src/adt/ |
Try to avoid splitting full B+-tree nodes by trying left or right rotation first.
(This improved memory consumption of this algorithm by some 40% - meassured on 101-item set). |
|
/kernel/trunk/generic/src/adt/btree.c
|
1135 |
6798 d 22 h |
decky |
/kernel/trunk/ |
framebuffer code cleanup, support for non-standard scanline sizes
ppc32: get framebuffer parameters from boot loader |
|
/kernel/trunk/arch/mips32/src/console.c /kernel/trunk/arch/ppc32/src/console.c /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/genarch/include/fb/fb.h /kernel/trunk/genarch/src/fb/fb.c
|
1134 |
6799 d 5 h |
jermar |
/kernel/trunk/generic/src/adt/ |
Change B+-tree to:
- store lesser keys in a key's left subtree
- propagate the bigger of medians (if there are two medians) when splitting a node |
|
/kernel/trunk/generic/src/adt/btree.c
|
1132 |
6800 d 2 h |
decky |
/kernel/trunk/arch/ppc32/ |
kernel boot API change |
|
/kernel/trunk/arch/ppc32/include/boot/memmap.h
/kernel/trunk/arch/ppc32/include/boot/boot.h /kernel/trunk/arch/ppc32/src/boot/boot.S /kernel/trunk/arch/ppc32/src/mm/frame.c /kernel/trunk/arch/ppc32/src/mm/memory_init.c /kernel/trunk/arch/ppc32/src/ppc32.c
|
1126 |
6800 d 9 h |
palkovsky |
/kernel/trunk/arch/mips32/src/ |
Fix bad order of EPC & STATUS change in syscall_shortcut. |
|
/kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/start.S
|
1124 |
6800 d 10 h |
jermar |
/kernel/trunk/arch/ |
Small changes.
Make sparc64 and ppc32 compile again. |
|
/kernel/trunk/arch/ia64/include/faddr.h /kernel/trunk/arch/ia64/src/context.S /kernel/trunk/arch/ppc32/src/dummy.s /kernel/trunk/arch/sparc64/src/dummy.s
|
1122 |
6800 d 20 h |
palkovsky |
/kernel/trunk/arch/mips32/ |
Set up T9 to entry point on entry to userspace to facilitate better
PIC running. |
|
/kernel/trunk/arch/mips32/include/asm.h /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/arch/mips32/src/start.S
|
1121 |
6801 d 0 h |
jermar |
/kernel/trunk/ |
Small textual changes. |
|
/kernel/trunk/arch/amd64/include/atomic.h /kernel/trunk/arch/amd64/src/amd64.c /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/ia32/src/ia32.c /kernel/trunk/arch/ia32/src/userspace.c /kernel/trunk/arch/ia64/src/ia64.c /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/generic/src/adt/btree.c
|
1119 |
6801 d 0 h |
palkovsky |
/kernel/trunk/arch/ |
Fixed bad rflags masking in amd64.
Added TLS get address instruction emulation for mips. |
|
/kernel/trunk/arch/amd64/src/userspace.c /kernel/trunk/arch/ia32/src/ia32.c /kernel/trunk/arch/mips32/src/exception.c
|
1118 |
6801 d 0 h |
jermar |
/kernel/trunk/generic/src/syscall/ |
Change syscall table. |
|
/kernel/trunk/generic/src/syscall/syscall.c
|
1117 |
6801 d 0 h |
jermar |
/kernel/trunk/generic/ |
Improved futexes. (kernel part) |
|
/kernel/trunk/generic/include/synch/futex.h /kernel/trunk/generic/src/synch/futex.c
|
1115 |
6801 d 9 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
|
1112 |
6801 d 11 h |
palkovsky |
/kernel/trunk/ |
Added basic kernel infrastructure for ThreadLocalStorage(TLS) for
ia32(complete),amd64(complete),mips32(missing emulation of rdhwr instruction). |
|
/kernel/trunk/arch/amd64/include/cpu.h /kernel/trunk/arch/amd64/include/thread.h /kernel/trunk/arch/amd64/src/amd64.c /kernel/trunk/arch/amd64/src/proc/scheduler.c /kernel/trunk/arch/ia32/include/pm.h /kernel/trunk/arch/ia32/include/thread.h /kernel/trunk/arch/ia32/src/ia32.c /kernel/trunk/arch/ia32/src/pm.c /kernel/trunk/arch/ia32/src/proc/scheduler.c /kernel/trunk/arch/ia32/src/userspace.c /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/syscall/syscall.c
|
1109 |
6801 d 23 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
|
1108 |
6801 d 23 h |
jermar |
/kernel/trunk/ |
Small PTE_* macros and SET_PTL0_ADDRESS macro changes. |
|
/kernel/trunk/arch/ia64/include/mm/page.h /kernel/trunk/arch/sparc64/include/mm/page.h /kernel/trunk/genarch/include/mm/page_ht.h /kernel/trunk/genarch/include/mm/page_pt.h /kernel/trunk/generic/src/mm/as.c
|
1107 |
6801 d 23 h |
jermar |
/kernel/trunk/ |
Small atomic #include and typedef changes. |
|
/kernel/trunk/arch/ia64/include/atomic.h /kernel/trunk/arch/mips32/include/atomic.h /kernel/trunk/arch/ppc32/include/atomic.h /kernel/trunk/generic/include/atomic.h /kernel/trunk/generic/include/typedefs.h
|
1106 |
6801 d 23 h |
jermar |
/kernel/trunk/arch/ |
Pass either -DCONFIG_PAGE_PT or -DCONFIG_PAGE_HT to the compiler. |
|
/kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia64/Makefile.inc /kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/ppc32/Makefile.inc /kernel/trunk/arch/sparc64/Makefile.inc
|
1104 |
6802 d 4 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
|
1103 |
6802 d 8 h |
jermar |
/kernel/trunk/generic/src/ |
Remove extra before_thread_runs() calls. |
|
/kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/waitq.c
|
1102 |
6802 d 22 h |
palkovsky |
/kernel/trunk/arch/ |
Keep $K1 register for use as a thread local storage pointer on MIPS. |
|
/kernel/trunk/arch/amd64/src/userspace.c /kernel/trunk/arch/mips32/include/context_offset.h /kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/src/start.S
|
1101 |
6804 d 0 h |
jermar |
/kernel/trunk/ |
B+-tree implementation.
Currently supports only inserting and searching. |
|
/kernel/trunk/generic/include/adt/btree.h /kernel/trunk/generic/src/adt/btree.c /kernel/trunk/test/btree /kernel/trunk/test/btree/btree1 /kernel/trunk/test/btree/btree1/test.c
/kernel/trunk/Makefile /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/main/main.c /kernel/trunk/kernel.config
|
1100 |
6804 d 1 h |
palkovsky |
/kernel/trunk/ |
Cleanup of spinlocks, now compiles both ia32 and amd64 with
and without DEBUG_SPINLOCKS. Made spinlocks inline.
Moved syscall_handler to generic (it was identical for ia32,amd64 & mips32).
Made slightly faster syscall for ia32.
Made better interrupt routines for ia32.
Allow not saving non-scratch registers during interrupt on ia32,amd64,mips32.
Aligned interrupt handlers on ia32,amd64, this should prevent problems
with different instruction lengths. |
|
/kernel/trunk/arch/amd64/include/atomic.h /kernel/trunk/arch/amd64/include/syscall.h /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/amd64/src/syscall.c /kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/arch/ia32/include/interrupt.h /kernel/trunk/arch/ia32/src/asm.S /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/start.S /kernel/trunk/generic/include/synch/spinlock.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/synch/spinlock.c /kernel/trunk/generic/src/syscall/syscall.c /kernel/trunk/kernel.config
|
1097 |
6804 d 7 h |
palkovsky |
/kernel/trunk/arch/mips32/src/ |
Still better syscall calling convention for mips. |
|
/kernel/trunk/arch/mips32/src/start.S
|
1096 |
6804 d 7 h |
palkovsky |
/kernel/trunk/ |
Cleanup of mips
- inline register reads
- better fpu disable/enable - global settings is automatically propagated to task
- fast syscall |
|
/kernel/trunk/arch/mips32/include/cp0.h /kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/include/thread.h /kernel/trunk/arch/mips32/src/asm.S /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/fpu_context.c /kernel/trunk/arch/mips32/src/start.S /kernel/trunk/contrib/conf/gxemul.sh /kernel/trunk/kernel.config
|
1094 |
6804 d 10 h |
palkovsky |
/kernel/trunk/ |
Allowed saving less registers. |
|
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/mips32/src/start.S /kernel/trunk/kernel.config
|
1093 |
6804 d 23 h |
palkovsky |
/kernel/trunk/generic/src/mm/ |
Fix bug with refcounts in frame allocator after zone_merge. (it caused some
frames not to be coalesced). |
|
/kernel/trunk/generic/src/mm/frame.c
|
1090 |
6805 d 1 h |
palkovsky |
/kernel/trunk/generic/ |
Reduced unnecessary IPC system calls.
Allow everything to be sync & async, everything is handled using messages. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/sysipc.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/syscall/syscall.c
|
1088 |
6805 d 8 h |
palkovsky |
/kernel/trunk/generic/ |
More IPC stuff, added correct closing of connections from both sides. |
|
/kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1087 |
6805 d 10 h |
palkovsky |
/kernel/trunk/arch/mips32/include/mm/ |
Fix MIPS32 bad paging index computation. Fixed random page faults on mips. |
|
/kernel/trunk/arch/mips32/include/mm/page.h
|
1086 |
6805 d 22 h |
palkovsky |
/kernel/trunk/generic/ |
Untested better IPC functions.
* There is some bug in MIPS, unpredicatbly sometimes the thread gets mapped
different frame for stack. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/ipcrsc.h /kernel/trunk/generic/include/ipc/sysipc.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.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/syscall/syscall.c
|
1084 |
6806 d 20 h |
palkovsky |
/kernel/trunk/ |
Better IPC implementation with regard to locking and final cleanup. |
|
/kernel/trunk/tools/ia32 /kernel/trunk/tools/ia32/decpt.py
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/ipcrsc.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1083 |
6806 d 22 h |
palkovsky |
/kernel/trunk/generic/src/ |
Fixed incorrect locking in ipc. |
|
/kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/proc/thread.c
|
1082 |
6807 d 1 h |
jermar |
/kernel/trunk/arch/sparc64/include/ |
Fix atomic_postdec() operation. |
|
/kernel/trunk/arch/sparc64/include/atomic.h
|