Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
842 |
6758 d 11 h |
palkovsky |
/kernel/trunk/ |
Avoid memory exhaustion in thread_create in slab2 test. |
|
/kernel/trunk/generic/src/proc/thread.c /kernel/trunk/test/mm/slab2/test.c
|
840 |
6759 d 11 h |
jermar |
/kernel/trunk/ |
Fix filling of hardcoded_ktext_size and hardcoded_kdata_size to use 64 bit stores on ia64. |
|
/kernel/trunk/arch/ia64/src/start.S /kernel/trunk/generic/src/mm/as.c
|
837 |
6760 d 15 h |
palkovsky |
/kernel/trunk/ |
Moved framebuffer to genarch. |
|
/kernel/trunk/genarch/include/fb /kernel/trunk/genarch/src/fb
/kernel/trunk/generic/include/fb /kernel/trunk/generic/src/fb
/kernel/trunk/Makefile /kernel/trunk/arch/mips32/src/console.c /kernel/trunk/genarch/Makefile.inc /kernel/trunk/genarch/src/fb/fb.c /kernel/trunk/genarch/src/fb/font-8x16.c
|
836 |
6761 d 2 h |
palkovsky |
/kernel/trunk/ |
Added support for 24-bit framebuffer. |
|
/kernel/trunk/generic/include/fb/fb.h /kernel/trunk/generic/src/fb/fb.c
/kernel/trunk/Makefile /kernel/trunk/arch/mips32/src/console.c /kernel/trunk/arch/mips32/src/mm/frame.c /kernel/trunk/arch/ppc32/src/mm/frame.c /kernel/trunk/contrib/conf/gxemul.sh /kernel/trunk/kernel.config
|
830 |
6764 d 11 h |
jermar |
/kernel/trunk/ |
Make ASID FIFO for mips32 be allocated statically.
Make ASID FIFO for sparc64 and ia64 be allocated dynamically.
Fix ia64 to call asid_fifo_init().
All three architectures now call asid_fifo_init() from as_arch_init(). |
|
/kernel/trunk/arch/ia64/src/mm/as.c /kernel/trunk/arch/mips32/src/mm/as.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/mm/as.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/genarch/src/mm/asid_fifo.c /kernel/trunk/generic/include/adt/fifo.h
|
827 |
6765 d 2 h |
palkovsky |
/kernel/trunk/ |
Unimportant changes regarding FPU context. |
|
/kernel/trunk/arch/amd64/src/fpu_context.c /kernel/trunk/arch/ia32/src/fpu_context.c /kernel/trunk/arch/mips32/src/fpu_context.c /kernel/trunk/generic/include/fpu_context.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/test/fpu/fpu1/test.c /kernel/trunk/test/fpu/mips1/test.c /kernel/trunk/test/fpu/sse1/test.c
|
826 |
6765 d 3 h |
jermar |
/kernel/trunk/ |
Add page_mapping_remove(). |
|
/kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/include/mm/page.h /kernel/trunk/generic/src/mm/page.c
|
824 |
6765 d 15 h |
palkovsky |
/kernel/trunk/ |
Use less frames for zone configuration data after merge. |
|
/kernel/trunk/generic/src/mm/frame.c /kernel/trunk/test/mm/falloc1/test.c
|
823 |
6766 d 1 h |
jermar |
/kernel/trunk/ |
Reimplement ASID stealing logic.
This time, hopefully, with correct synchronization. |
|
/kernel/trunk/arch/ia32/include/mm/asid.h /kernel/trunk/arch/ia64/src/mm/frame.c /kernel/trunk/arch/ppc32/include/mm/asid.h /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/genarch/src/mm/asid.c /kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/asid.h /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/proc/scheduler.c
|
822 |
6766 d 2 h |
palkovsky |
/kernel/trunk/ |
Changed malloc to include second parameter and documented
recommended usage.
Added zone merging, made ia32 & amd64 to merge found zones. |
|
/kernel/trunk/arch/amd64/src/pm.c /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/ia32/src/pm.c /kernel/trunk/arch/ia32/src/smp/smp.c /kernel/trunk/doc/mm /kernel/trunk/genarch/src/acpi/matd.c /kernel/trunk/generic/include/mm/buddy.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/src/adt/hash_table.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/lib/sort.c /kernel/trunk/generic/src/main/main.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/slab.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/test/mm/falloc2/test.c
|
820 |
6766 d 3 h |
jermar |
/kernel/trunk/ |
Convert size_t, count_t and index_t to 64-bits on 64-bit architectures.
Change some pfn_t usages to count_t, size_t and index_t. |
|
/kernel/trunk/arch/amd64/_link.ld.in /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/amd64/src/boot/boot.S /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/mips32/src/drivers/arc.c /kernel/trunk/arch/sparc64/_link.ld.in /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/generic/include/config.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/mm/frame.c
|
817 |
6766 d 11 h |
palkovsky |
/kernel/trunk/ |
Small cleanup. |
|
/kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/generic/src/main/kinit.c
|
816 |
6766 d 11 h |
jermar |
/kernel/trunk/ |
Fix mapping1 test.
Cleanup. |
|
/kernel/trunk/arch/ia64/src/mm/frame.c /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/test/mm/mapping1/test.c
|
815 |
6766 d 12 h |
jermar |
/kernel/trunk/ |
Fix sparc64 and ia64 to work with the changed frame allocator.
Fix ppc32 to at least compile. |
|
/kernel/trunk/arch/ia64/include/types.h /kernel/trunk/arch/ia64/src/mm/frame.c /kernel/trunk/arch/mips32/src/mm/frame.c /kernel/trunk/arch/ppc32/include/types.h /kernel/trunk/arch/ppc32/src/mm/frame.c /kernel/trunk/arch/sparc64/include/types.h /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/generic/src/mm/buddy.c
|
814 |
6766 d 12 h |
palkovsky |
/kernel/trunk/ |
Cleanup o frame allocator.
Removed early_malloc & initial heap.
Will break ia64, ppc & sparc.
Added e820 table print. |
|
/kernel/trunk/generic/include/mm/heap.h /kernel/trunk/generic/src/mm/heap.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/include/types.h /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/amd64/src/pm.c /kernel/trunk/arch/ia32/include/types.h /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/ia32/src/pm.c /kernel/trunk/arch/ia32/src/smp/smp.c /kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/mips32/include/types.h /kernel/trunk/arch/mips32/src/drivers/arc.c /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/arch/mips32/src/mm/frame.c /kernel/trunk/contrib/conf/msim.conf /kernel/trunk/genarch/src/acpi/matd.c /kernel/trunk/genarch/src/mm/as_pt.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/include/mm/buddy.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/adt/hash_table.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/lib/sort.c /kernel/trunk/generic/src/main/main.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/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/test/mm/falloc1/test.c /kernel/trunk/test/mm/falloc2/test.c
|
813 |
6767 d 1 h |
jermar |
/kernel/trunk/ |
Change ia64 kernel image to link and load at 0x100000 where
it (or its heap or stack) won't mess up with the ROM region.
Blacklist ia64 frame 0 from frame allocator so that 0 won't be
returned to malloc and friends. This can be reenabled again
once the kernel is not identity mapped. |
|
/kernel/trunk/arch/ia64/_link.ld.in /kernel/trunk/arch/ia64/src/mm/frame.c /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/generic/src/mm/buddy.c
|
799 |
6768 d 4 h |
palkovsky |
/kernel/trunk/ |
Preliminary work on AMD userspace. |
|
/kernel/trunk/arch/amd64/include/interrupt.h
/kernel/trunk/arch/amd64/include/context.h /kernel/trunk/arch/amd64/include/context_offset.h /kernel/trunk/arch/amd64/include/cpu.h /kernel/trunk/arch/amd64/src/amd64.c /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/amd64/src/pm.c /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/tools/amd64/gencontext.c
|
794 |
6768 d 9 h |
palkovsky |
/kernel/trunk/ |
Added MIPS userspace. Currently can't make it work in gxemul. |
|
/kernel/trunk/arch/mips32/include/asm/regname.h /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/contrib/conf/msim.conf /kernel/trunk/contrib/conf/spmips.conf /kernel/trunk/generic/src/main/kinit.c
|
793 |
6768 d 10 h |
jermar |
/kernel/trunk/ |
Use hash_table_get_instance instead of list_get_instance.
Rename page_operations to page_mapping_operations.
Rename page_pt_operations to pt_mapping_operations.
Rename page_ht_operations to ht_mapping_operations. |
|
/kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/ia64/src/mm/page.c /kernel/trunk/arch/mips32/src/mm/page.c /kernel/trunk/arch/ppc32/src/mm/page.c /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/arch/sparc64/src/mm/page.c /kernel/trunk/genarch/include/mm/page_ht.h /kernel/trunk/genarch/include/mm/page_pt.h /kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/include/adt/hash_table.h /kernel/trunk/generic/include/mm/page.h /kernel/trunk/generic/src/mm/page.c
|
792 |
6768 d 11 h |
jermar |
/kernel/trunk/ |
Page hash table architectures now use generic hash table to manage
mappings. |
|
/kernel/trunk/arch/ia64/include/mm/page.h /kernel/trunk/arch/ia64/include/types.h /kernel/trunk/arch/ia64/src/mm/page.c /kernel/trunk/arch/sparc64/include/mm/page.h /kernel/trunk/arch/sparc64/include/types.h /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/genarch/include/mm/page_ht.h /kernel/trunk/genarch/src/mm/as_ht.c /kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/generic/include/adt/hash_table.h /kernel/trunk/generic/src/adt/hash_table.c /kernel/trunk/generic/src/mm/as.c
|
791 |
6768 d 23 h |
palkovsky |
/kernel/trunk/generic/ |
better utilization of memory in slab alloc
removed malloc-8 slab |
|
/kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/src/mm/slab.c
|
790 |
6769 d 3 h |
jermar |
/kernel/trunk/ |
Generic chaining hash table. |
|
/kernel/trunk/generic/include/adt/hash_table.h /kernel/trunk/generic/src/adt/hash_table.c
/kernel/trunk/Makefile /kernel/trunk/generic/include/typedefs.h
|
789 |
6769 d 3 h |
palkovsky |
/kernel/trunk/generic/ |
Early SLAB initialization, the cpu-cache is initialized later.
If you want to use slab_cache_create befor slab_cpu_enable, add
a flag SLAB_CACHE_MAGDEFERRED. |
|
/kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/slab.c
|
788 |
6769 d 7 h |
jermar |
/kernel/trunk/ |
Move list and fifo data types to adt/. |
|
/kernel/trunk/generic/include/adt /kernel/trunk/generic/include/adt/fifo.h /kernel/trunk/generic/include/adt/list.h /kernel/trunk/generic/src/adt /kernel/trunk/generic/src/adt/list.c
/kernel/trunk/generic/include/fifo.h /kernel/trunk/generic/include/list.h /kernel/trunk/generic/src/lib/list.c
/kernel/trunk/Makefile /kernel/trunk/genarch/src/mm/asid.c /kernel/trunk/genarch/src/mm/asid_fifo.c /kernel/trunk/generic/include/console/kconsole.h /kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/include/proc/scheduler.h /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/include/time/timeout.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/cpu/cpu.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/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/synch/rwlock.c /kernel/trunk/generic/src/synch/waitq.c /kernel/trunk/generic/src/time/clock.c
|
787 |
6769 d 8 h |
palkovsky |
/kernel/trunk/generic/ |
Added constructor/destructor calls to SLAB.
Changed allocation of thread_t structure to use SLAB. |
|
/kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/include/print.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/spinlock.c
|
786 |
6769 d 9 h |
bondari |
/kernel/trunk/ |
frame_alloc() functions variations in order to avoid problems with frame_alloc_generic() changes.
IMPORTANT: Parameter order for frame_alloc() was changed |
|
/kernel/trunk/arch/ia64/src/mm/page.c /kernel/trunk/genarch/src/mm/as_ht.c /kernel/trunk/genarch/src/mm/as_pt.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/test/mm/falloc1/test.c /kernel/trunk/test/mm/falloc2/test.c /kernel/trunk/test/mm/mapping1/test.c
|
785 |
6769 d 10 h |
jermar |
/kernel/trunk/generic/src/ |
Comments clarification. |
|
/kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/proc/scheduler.c
|
784 |
6769 d 11 h |
palkovsky |
/kernel/trunk/generic/src/proc/ |
Cleanup of scheduler code |
|
/kernel/trunk/generic/src/proc/scheduler.c
|
783 |
6769 d 11 h |
palkovsky |
/kernel/trunk/generic/ |
Fixed some typos in slab allocator.
Scheduler now has better algorithm on load balancing.
Unfortunately it reveals deadlock in slab allocator :-/ |
|
/kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c
|
782 |
6769 d 13 h |
palkovsky |
/kernel/trunk/generic/src/mm/ |
Small locking performance tweak. |
|
/kernel/trunk/generic/src/mm/slab.c
|
781 |
6770 d 0 h |
palkovsky |
/kernel/trunk/generic/ |
Still better locking - does not hold global spinlock when
destroying cache. |
|
/kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/src/mm/slab.c
|
780 |
6770 d 3 h |
palkovsky |
/kernel/trunk/ |
Small fix in slab allocator for large-sized slabs. |
|
/kernel/trunk/generic/src/mm/slab.c /kernel/trunk/test/mm/slab2/test.c
|
779 |
6770 d 4 h |
jermar |
/kernel/trunk/generic/ |
Simplify load balancing activation.
This in fact removes the livelock that prevented cpu_sleep() to be called in SMP systems. |
|
/kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/proc/scheduler.c
|
778 |
6770 d 6 h |
palkovsky |
/kernel/trunk/ |
Fixed boot process not to call malloc when slab not initialized.
Added simics workaround. |
|
/kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/genarch/src/acpi/matd.c /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/kernel.config
|
777 |
6770 d 7 h |
palkovsky |
/kernel/trunk/generic/ |
added thread list to kconsole. |
|
/kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/proc/thread.c
|
776 |
6770 d 10 h |
palkovsky |
/kernel/trunk/generic/ |
Added more granular locking to slab allocator and thus fix
hopefully last race condition. |
|
/kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/src/mm/slab.c
|
775 |
6770 d 11 h |
palkovsky |
/kernel/trunk/generic/ |
Added scheduler queues output. The scheduler is buggy - on SMP
the cpus never get tu cpu_sleep, in slab2 test on 4 cpus everything
is on the first cpu.
The slab allocator passes tests in this configuration, but in slightly
different(more efficient) locking order it panics. TODO: Find out why
does it panic. |
|
/kernel/trunk/generic/include/proc/scheduler.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/proc/scheduler.c
|
773 |
6770 d 23 h |
palkovsky |
/kernel/trunk/ |
Added slab stress test.
Fixed race condition in slab allocator.
Moved initialization of slab to the point where we know correct config.cpu_count
Correctly passes tests on amd64, ia32 in both bochs & qemu. |
|
/kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/test/mm/slab2/test.c
|
772 |
6771 d 0 h |
palkovsky |
/kernel/trunk/ |
Fixed non-initialized cpu-cache. |
|
/kernel/trunk/generic/include/bitops.h /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/test/mm/slab1/test.c
|
771 |
6771 d 2 h |
palkovsky |
/kernel/trunk/generic/ |
Implemented malloc/free as SLABs. |
|
/kernel/trunk/generic/include/bitops.h
/kernel/trunk/generic/include/mm/heap.h /kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/slab.c
|