Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
703 |
6876 d 5 h |
jermar |
/kernel/trunk/ |
Memory management work.
- vm.* -> as.* (as like address space is, imho, more fitting)
- Don't do TLB shootdown on vm_install(). Some architectures only need to call tlb_invalidate_asid().
- Don't allocate all frames for as_area in as_area_create(), but let them be allocated on-demand by as_page_fault().
- Add high-level page fault handler as_page_fault().
- Add as_area_load_mapping(). |
|
/kernel/trunk/arch/amd64/include/mm/as.h /kernel/trunk/arch/ia32/include/mm/as.h /kernel/trunk/arch/ia64/include/mm/as.h /kernel/trunk/arch/mips32/include/mm/as.h /kernel/trunk/arch/mips32/src/mm/as.c /kernel/trunk/arch/ppc32/include/mm/as.h /kernel/trunk/arch/sparc64/include/mm/as.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/mm/as.c
/kernel/trunk/arch/amd64/include/mm/vm.h /kernel/trunk/arch/ia32/include/mm/vm.h /kernel/trunk/arch/ia64/include/mm/vm.h /kernel/trunk/arch/mips32/include/mm/vm.h /kernel/trunk/arch/mips32/src/mm/vm.c /kernel/trunk/arch/ppc32/include/mm/vm.h /kernel/trunk/arch/sparc64/include/mm/vm.h /kernel/trunk/generic/include/mm/vm.h /kernel/trunk/generic/src/mm/vm.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/amd64/src/userspace.c /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/ia32/src/userspace.c /kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/doc/mm /kernel/trunk/generic/include/arch.h /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/page.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/the.c
|
689 |
6881 d 1 h |
bondari |
/kernel/trunk/ |
Frame alloc test #1 |
|
/kernel/trunk/test/mm/falloc1 /kernel/trunk/test/mm/falloc1/test.c
/kernel/trunk/arch/mips32/src/mm/page.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/frame.c /kernel/trunk/generic/src/mm/vm.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/kernel.config /kernel/trunk/test/mm/mapping1/test.c
|
678 |
6884 d 20 h |
decky |
/kernel/trunk/ |
move syscall infrastructure to a separate subdir |
|
/kernel/trunk/generic/include/syscall /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/syscall /kernel/trunk/generic/src/syscall/syscall.c
/kernel/trunk/generic/include/proc/syscall.h /kernel/trunk/generic/src/proc/syscall.c
/kernel/trunk/Makefile
|
675 |
6885 d 4 h |
jermar |
/kernel/trunk/generic/src/ |
Clean up. |
|
/kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/proc/scheduler.c
|
662 |
6896 d 19 h |
decky |
/kernel/trunk/ |
initial syscall table support |
|
/kernel/trunk/generic/include/proc/syscall.h /kernel/trunk/generic/src/proc/syscall.c
/kernel/trunk/Makefile
|
650 |
6900 d 19 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Implement interrupt_disable(), interrupt_enable(), interrupt_restore() and interrupt_read() functions.
Fix context save/restore to save/restore register %i7. |
|
/kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/context.h /kernel/trunk/arch/sparc64/include/context_offset.h /kernel/trunk/arch/sparc64/include/register.h /kernel/trunk/arch/sparc64/src/context.S /kernel/trunk/arch/sparc64/src/dummy.s /kernel/trunk/generic/include/debug.h /kernel/trunk/generic/src/proc/scheduler.c
|
631 |
6904 d 20 h |
palkovsky |
/kernel/trunk/ |
Fixed cpu halting in debug panic mode. |
|
/kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/generic/include/func.h /kernel/trunk/generic/src/console/console.c /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/proc/scheduler.c
|
625 |
6905 d 1 h |
palkovsky |
/kernel/trunk/ |
We are now almost -Wall clean.
- redefined atomic_t
- deleted many, many unused variables
- some minor code cleanups found using compiler warning. |
|
/kernel/trunk/arch/amd64/include/asm.h /kernel/trunk/arch/amd64/src/cpu/cpu.c /kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/arch/ia32/src/fmath.c /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/ia32/src/smp/smp.c /kernel/trunk/arch/ia64/include/atomic.h /kernel/trunk/arch/mips32/include/atomic.h /kernel/trunk/arch/mips32/src/drivers/arc.c /kernel/trunk/arch/mips32/src/drivers/serial.c /kernel/trunk/arch/ppc32/include/atomic.h /kernel/trunk/arch/sparc64/include/atomic.h /kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/include/debug.h /kernel/trunk/generic/include/synch/spinlock.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/vm.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/generic/src/synch/spinlock.c /kernel/trunk/test/synch/rwlock4/test.c
|
624 |
6905 d 2 h |
jermar |
/kernel/trunk/generic/ |
Add LIST_INITIALIZE() macro to declare and initialize statically allocated lists. |
|
/kernel/trunk/generic/include/list.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
623 |
6905 d 7 h |
jermar |
/kernel/trunk/ |
Add SPINLOCK_DECLARE and SPINLOCK_INITIALIZE macros.
SPINLOCK_DECLARE is to be used instead of direct spinlock_t declarations
in dynamically allocated structures on which spinlock_initialize() is called after
their creation.
SPINLOCK_INITIALIZE is to be used instead of direct spinlock_t declarations
of global spinlocks. It declares and initializes the spinlock.
Moreover, both macros are empty on UP so that -Wall warnings about unused structures
get supressed. |
|
/kernel/trunk/arch/ia32/src/drivers/ega.c /kernel/trunk/arch/ia32/src/drivers/i8042.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/arch/mips32/src/mm/asid.c /kernel/trunk/generic/include/console/chardev.h /kernel/trunk/generic/include/console/kconsole.h /kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/include/mm/vm.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/rwlock.h /kernel/trunk/generic/include/synch/spinlock.h /kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/include/time/timeout.h /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/interrupt/interrupt.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/heap.c /kernel/trunk/generic/src/mm/tlb.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/test/synch/rwlock4/test.c /kernel/trunk/test/synch/semaphore2/test.c /kernel/trunk/test/thread/thread1/test.c
|
557 |
6913 d 4 h |
jermar |
/kernel/trunk/ |
Add comments describing locking rules for some locks.
Cleanup. |
|
/kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/generic/src/synch/spinlock.c /kernel/trunk/generic/src/synch/waitq.c
|
552 |
6913 d 20 h |
palkovsky |
/kernel/trunk/ |
Named spinlocks |
|
/kernel/trunk/arch/ia32/src/drivers/i8042.c /kernel/trunk/generic/include/synch/spinlock.h /kernel/trunk/generic/src/console/chardev.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/heap.c /kernel/trunk/generic/src/mm/tlb.c /kernel/trunk/generic/src/mm/vm.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/spinlock.c /kernel/trunk/generic/src/synch/waitq.c /kernel/trunk/generic/src/time/timeout.c /kernel/trunk/tools/config.py
|
548 |
6913 d 22 h |
jermar |
/kernel/trunk/ |
Cleanup and fixes. |
|
/kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/mips32/src/mm/page.c /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/mm/page.c /kernel/trunk/generic/src/mm/vm.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/kernel.config /kernel/trunk/test/mm/mapping1/test.c
|
534 |
6915 d 22 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel again. |
|
/kernel
/SPARTAN
|
533 |
6915 d 22 h |
bondari |
/SPARTAN/trunk/ |
Buddy allocator for physical memory complete implementation.
Tested on IA32, AMD64, MIPS32. RWLock Test #5 is not passed.
NOTE: Other architectures could be broken (but should not be) |
|
/SPARTAN/trunk/Makefile.config /SPARTAN/trunk/arch/amd64/src/mm/page.c /SPARTAN/trunk/arch/ia32/src/mm/frame.c /SPARTAN/trunk/arch/ia32/src/mm/page.c /SPARTAN/trunk/arch/ia64/src/mm/frame.c /SPARTAN/trunk/arch/mips32/src/mm/frame.c /SPARTAN/trunk/arch/mips32/src/mm/page.c /SPARTAN/trunk/arch/ppc32/src/mm/frame.c /SPARTAN/trunk/generic/include/mm/buddy.h /SPARTAN/trunk/generic/include/mm/frame.h /SPARTAN/trunk/generic/include/typedefs.h /SPARTAN/trunk/generic/src/cpu/cpu.c /SPARTAN/trunk/generic/src/mm/buddy.c /SPARTAN/trunk/generic/src/mm/frame.c /SPARTAN/trunk/generic/src/mm/page.c /SPARTAN/trunk/generic/src/mm/vm.c /SPARTAN/trunk/generic/src/proc/thread.c
|
532 |
6915 d 22 h |
jermar |
/ |
Revert renaming of HelenOS/SPARTAN to HelenOS/kernel because of important pending patch. |
|
/SPARTAN
/kernel
|
501 |
6928 d 2 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel. |
|
/kernel
/SPARTAN
|
483 |
6935 d 22 h |
jermar |
/SPARTAN/trunk/ |
For now, each architecture must use its own -O switch (-O2 doesn't work for ia64, -O3 doesn't work for mips32).
New mips32 atomic_add() function.
Cleanup. |
|
/SPARTAN/trunk/Makefile /SPARTAN/trunk/Makefile.config /SPARTAN/trunk/arch/amd64/Makefile.inc /SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia64/Makefile.inc /SPARTAN/trunk/arch/mips32/Makefile.inc /SPARTAN/trunk/arch/mips32/include/atomic.h /SPARTAN/trunk/arch/mips32/include/cpu.h /SPARTAN/trunk/arch/mips32/src/interrupt.c /SPARTAN/trunk/arch/ppc32/Makefile.inc /SPARTAN/trunk/arch/sparc64/Makefile.inc /SPARTAN/trunk/generic/include/arch.h /SPARTAN/trunk/generic/include/config.h /SPARTAN/trunk/generic/include/cpu.h /SPARTAN/trunk/generic/include/proc/scheduler.h /SPARTAN/trunk/generic/include/synch/rwlock.h /SPARTAN/trunk/generic/include/typedefs.h /SPARTAN/trunk/generic/src/proc/scheduler.c /SPARTAN/trunk/test/fpu/fpu1/test.c /SPARTAN/trunk/test/fpu/mips1/test.c /SPARTAN/trunk/test/fpu/sse1/test.c /SPARTAN/trunk/test/synch/rwlock5/test.c
|
475 |
6940 d 4 h |
jermar |
/SPARTAN/trunk/ |
Define atomic_t type. |
|
/SPARTAN/trunk/arch/ia32/include/atomic.h /SPARTAN/trunk/arch/ia64/include/atomic.h /SPARTAN/trunk/arch/mips32/include/atomic.h /SPARTAN/trunk/arch/ppc32/include/atomic.h /SPARTAN/trunk/arch/sparc64/include/atomic.h /SPARTAN/trunk/generic/include/proc/scheduler.h /SPARTAN/trunk/generic/src/proc/scheduler.c /SPARTAN/trunk/generic/src/proc/thread.c /SPARTAN/trunk/test/synch/rwlock4/test.c /SPARTAN/trunk/test/synch/rwlock5/test.c /SPARTAN/trunk/test/synch/semaphore1/test.c /SPARTAN/trunk/test/synch/semaphore2/test.c
|
458 |
6942 d 5 h |
decky |
/SPARTAN/trunk/ |
make configuration variables usage consistent |
|
/SPARTAN/trunk/Makefile /SPARTAN/trunk/arch/amd64/Makefile.inc /SPARTAN/trunk/arch/amd64/src/amd64.c /SPARTAN/trunk/arch/amd64/src/interrupt.c /SPARTAN/trunk/arch/amd64/src/smp/ap.S /SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia32/include/atomic.h /SPARTAN/trunk/arch/ia32/src/atomic.S /SPARTAN/trunk/arch/ia32/src/ia32.c /SPARTAN/trunk/arch/ia32/src/interrupt.c /SPARTAN/trunk/arch/ia32/src/smp/ap.S /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/arch/ia32/src/smp/ipi.c /SPARTAN/trunk/arch/ia32/src/smp/mps.c /SPARTAN/trunk/arch/ia32/src/smp/smp.c /SPARTAN/trunk/arch/mips32/Makefile.inc /SPARTAN/trunk/arch/mips32/src/exception.c /SPARTAN/trunk/genarch/src/acpi/matd.c /SPARTAN/trunk/generic/include/cpu.h /SPARTAN/trunk/generic/include/mm/tlb.h /SPARTAN/trunk/generic/include/smp/ipi.h /SPARTAN/trunk/generic/include/smp/smp.h /SPARTAN/trunk/generic/include/synch/spinlock.h /SPARTAN/trunk/generic/src/cpu/cpu.c /SPARTAN/trunk/generic/src/main/kinit.c /SPARTAN/trunk/generic/src/main/main.c /SPARTAN/trunk/generic/src/mm/tlb.c /SPARTAN/trunk/generic/src/proc/scheduler.c /SPARTAN/trunk/generic/src/smp/ipi.c /SPARTAN/trunk/generic/src/synch/spinlock.c
|