Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
689 |
6875 d 9 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
|
673 |
6880 d 3 h |
jermar |
/kernel/trunk/ |
Add 'version' and 'cpus' kconsole commands.
Remove leading p from names of p* commands. |
|
/kernel/trunk/generic/include/main/version.h /kernel/trunk/generic/src/main/version.c
/kernel/trunk/Makefile /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/interrupt/interrupt.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c
|
646 |
6896 d 2 h |
jermar |
/kernel/trunk/ |
Fix cpu_init(): frame_alloc() can return 0 as the valid address of block of frames. Do not signal error.
sparc64 work.
Reorganize kernel vs. userspace memory layout.
Add panic_printf().
Turn dummy() into nop rather than into infinite loop. |
|
/kernel/trunk/arch/sparc64/src/panic.S
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/mm/page.h /kernel/trunk/arch/sparc64/include/mm/vm.h /kernel/trunk/arch/sparc64/src/dummy.s /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/generic/src/cpu/cpu.c
|
623 |
6899 d 15 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
|
548 |
6908 d 6 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 |
6910 d 6 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel again. |
|
/kernel
/SPARTAN
|
533 |
6910 d 6 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 |
6910 d 6 h |
jermar |
/ |
Revert renaming of HelenOS/SPARTAN to HelenOS/kernel because of important pending patch. |
|
/SPARTAN
/kernel
|
501 |
6922 d 10 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel. |
|
/kernel
/SPARTAN
|
458 |
6936 d 13 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
|
430 |
6943 d 3 h |
jermar |
/SPARTAN/trunk/ |
Move src/ and include/ to generic. |
|
/SPARTAN/trunk/generic /SPARTAN/trunk/generic/include /SPARTAN/trunk/generic/src
/SPARTAN/trunk/include /SPARTAN/trunk/src
/SPARTAN/trunk/Makefile /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/boot/Makefile /SPARTAN/trunk/arch/ppc32/Makefile.inc /SPARTAN/trunk/arch/sparc64/Makefile.inc /SPARTAN/trunk/genarch/Makefile.inc /SPARTAN/trunk/generic/src/main/kinit.c
|
192 |
7006 d 8 h |
jermar |
/SPARTAN/trunk/ |
Dump implementation of THREAD, TASK and CPU.
Implement preemption-safe versions of THREAD, TASK and CPU using THE.
Get rid of CPU_ID_ARCH on all architectures.
Get rid of write_dr0() and read_dr0() on IA-32.
Get rid of cpu_private_data and cpu_private_data_t. |
|
/SPARTAN/trunk/arch/amd64/include/cpu.h /SPARTAN/trunk/arch/ia32/include/asm.h /SPARTAN/trunk/arch/ia32/include/cpu.h /SPARTAN/trunk/arch/ia32/src/ia32.c /SPARTAN/trunk/arch/ia64/include/cpu.h /SPARTAN/trunk/arch/mips/include/cpu.h /SPARTAN/trunk/arch/ppc/include/cpu.h /SPARTAN/trunk/include/arch.h /SPARTAN/trunk/include/cpu.h /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/src/cpu/cpu.c /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/proc/scheduler.c
|
125 |
7052 d 3 h |
jermar |
/SPARTAN/trunk/ |
Huge indentation fix. |
|
/SPARTAN/trunk/arch/ia32/boot/boot.S /SPARTAN/trunk/arch/ia32/boot/boot.ld /SPARTAN/trunk/arch/ia32/include/cpu.h /SPARTAN/trunk/arch/ia32/src/acpi/acpi.c /SPARTAN/trunk/arch/ia32/src/asm.s /SPARTAN/trunk/arch/ia32/src/boot/boot.S /SPARTAN/trunk/arch/ia32/src/context.s /SPARTAN/trunk/arch/ia32/src/cpu/cpu.c /SPARTAN/trunk/arch/ia32/src/cpuid.s /SPARTAN/trunk/arch/ia32/src/drivers/ega.c /SPARTAN/trunk/arch/ia32/src/drivers/i8254.c /SPARTAN/trunk/arch/ia32/src/drivers/i8259.c /SPARTAN/trunk/arch/ia32/src/fpu_context.c /SPARTAN/trunk/arch/ia32/src/ia32.c /SPARTAN/trunk/arch/ia32/src/interrupt.c /SPARTAN/trunk/arch/ia32/src/mm/frame.c /SPARTAN/trunk/arch/ia32/src/mm/page.c /SPARTAN/trunk/arch/ia32/src/pm.c /SPARTAN/trunk/arch/ia32/src/proc/scheduler.c /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/arch/ia32/src/smp/mps.c /SPARTAN/trunk/arch/ia32/src/userspace.c /SPARTAN/trunk/arch/ia64/_link.ld /SPARTAN/trunk/arch/ia64/boot/_link.ld /SPARTAN/trunk/arch/ia64/include/mm/page.h /SPARTAN/trunk/arch/mips/_link.ld /SPARTAN/trunk/arch/mips/boot/boot.s /SPARTAN/trunk/arch/mips/include/context.h /SPARTAN/trunk/arch/mips/include/cpu.h /SPARTAN/trunk/arch/mips/include/mm/page.h /SPARTAN/trunk/arch/mips/src/cpu/cpu.c /SPARTAN/trunk/arch/mips/src/interrupt.c /SPARTAN/trunk/arch/mips/src/mips.c /SPARTAN/trunk/arch/mips/src/start.S /SPARTAN/trunk/arch/powerpc/_link.ld /SPARTAN/trunk/include/mm/page.h /SPARTAN/trunk/include/proc/thread.h /SPARTAN/trunk/include/stackarg.h /SPARTAN/trunk/include/synch/semaphore.h /SPARTAN/trunk/include/synch/waitq.h /SPARTAN/trunk/include/time/timeout.h /SPARTAN/trunk/src/cpu/cpu.c /SPARTAN/trunk/src/main/kinit.c /SPARTAN/trunk/src/mm/frame.c /SPARTAN/trunk/src/mm/page.c /SPARTAN/trunk/src/proc/scheduler.c /SPARTAN/trunk/src/proc/thread.c /SPARTAN/trunk/src/time/clock.c /SPARTAN/trunk/src/time/timeout.c /SPARTAN/trunk/test/fpu/fpu1/test.c
|
108 |
7094 d 10 h |
decky |
/SPARTAN/trunk/ |
doxygen-style comments
NDEBUG in Makefile.config |
|
/SPARTAN/trunk/include/userspace.h /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/src/cpu/cpu.c /SPARTAN/trunk/src/main/main.c
|
31 |
7132 d 9 h |
jermar |
/SPARTAN/trunk/ |
Replace the deadlock-prone TLB shootdown algorithm with a deadlock-free implementation.
The implementation is a variant of the CMU TLB consistency algorithm.
Very inefficient implementation of a very inefficient (but correct) algorithm. |
|
/SPARTAN/trunk/arch/ia32/src/bios/bios.c /SPARTAN/trunk/arch/ia32/src/interrupt.c /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/include/cpu.h /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/src/cpu/cpu.c /SPARTAN/trunk/src/mm/tlb.c /SPARTAN/trunk/src/mm/vm.c
|
28 |
7133 d 13 h |
jermar |
/SPARTAN/trunk/ |
Small improvements. |
|
/SPARTAN/trunk/arch/ia32/include/asm.h /SPARTAN/trunk/arch/ia32/src/asm.s /SPARTAN/trunk/arch/ia32/src/ia32.c /SPARTAN/trunk/arch/ia32/src/smp/mp.c /SPARTAN/trunk/include/cpu.h /SPARTAN/trunk/src/cpu/cpu.c /SPARTAN/trunk/src/main/kinit.c
|
24 |
7139 d 6 h |
jermar |
/SPARTAN/trunk/ |
Small fixes. |
|
/SPARTAN/trunk/arch/ia32/include/cpu.h /SPARTAN/trunk/arch/ia32/src/ia32.c /SPARTAN/trunk/src/cpu/cpu.c
|
20 |
7145 d 11 h |
jermar |
/SPARTAN/trunk/ |
Smarter definition of CPU macro. |
|
/SPARTAN/trunk/include/arch.h /SPARTAN/trunk/include/cpu.h /SPARTAN/trunk/src/cpu/cpu.c
|
16 |
7148 d 9 h |
jermar |
/SPARTAN/trunk/ |
Switch from mm-based 'the' mechanism to macro-based 'cpu_private_data[CPU_ID_ARCH]' mechanism.
Added l_apic_id() and some other minor APIC changes.
Move gdtr to K_DATA_START section.
Move K_DATA_START section immediately behind K_TEXT_START section so that real-mode addresses work even with growing size of kernel code. |
|
/SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia32/_link.ld /SPARTAN/trunk/arch/ia32/boot/boot.ld /SPARTAN/trunk/arch/ia32/include/cpu.h /SPARTAN/trunk/arch/ia32/include/smp/apic.h /SPARTAN/trunk/arch/ia32/src/cpu/cpu.c /SPARTAN/trunk/arch/ia32/src/pm.c /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/arch/mips/include/cpu.h /SPARTAN/trunk/include/arch.h /SPARTAN/trunk/include/cpu.h /SPARTAN/trunk/include/typedefs.h /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/src/cpu/cpu.c /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/proc/thread.c
|
15 |
7149 d 7 h |
jermar |
/SPARTAN/trunk/ |
Introduce macros CPU, THREAD, TASK and use them to replace the->cpu, the->thread, the->task.
Later on, this will make it possible to reference *current* cpu, thread and/or task without the aid from virtual memory. |
|
/SPARTAN/trunk/arch/ia32/src/cpu/cpu.c /SPARTAN/trunk/arch/ia32/src/drivers/i8042.c /SPARTAN/trunk/arch/ia32/src/drivers/i8254.c /SPARTAN/trunk/arch/ia32/src/drivers/i8259.c /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/arch/ia32/src/userspace.c /SPARTAN/trunk/arch/mips/src/cpu/cpu.c /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/mm/tlb.c /SPARTAN/trunk/include/arch.h /SPARTAN/trunk/src/cpu/cpu.c /SPARTAN/trunk/src/lib/func.c /SPARTAN/trunk/src/main/kinit.c /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/proc/scheduler.c /SPARTAN/trunk/src/proc/task.c /SPARTAN/trunk/src/proc/thread.c /SPARTAN/trunk/src/synch/rwlock.c /SPARTAN/trunk/src/synch/spinlock.c /SPARTAN/trunk/src/synch/waitq.c /SPARTAN/trunk/src/time/clock.c /SPARTAN/trunk/src/time/delay.c /SPARTAN/trunk/src/time/timeout.c /SPARTAN/trunk/test/synch/rwlock2/test.c /SPARTAN/trunk/test/synch/rwlock3/test.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
|