Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
958 |
6731 d 8 h |
jermar |
/kernel/trunk/ |
Nicer ia32 interrupt handlers and structures holding interrupted context data.
Unify the name holding interrupted context data on all architectures to be istate. |
|
/kernel/trunk/arch/amd64/include/context.h /kernel/trunk/arch/amd64/include/interrupt.h /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/ia32/include/interrupt.h /kernel/trunk/arch/ia32/include/types.h /kernel/trunk/arch/ia32/src/asm.S /kernel/trunk/arch/ia32/src/drivers/i8254.c /kernel/trunk/arch/ia32/src/drivers/i8259.c /kernel/trunk/arch/ia32/src/ia32.c /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/ia32/src/pm.c /kernel/trunk/arch/ia32/src/smp/apic.c /kernel/trunk/arch/ia64/include/interrupt.h /kernel/trunk/arch/ia64/include/mm/tlb.h /kernel/trunk/arch/ia64/include/types.h /kernel/trunk/arch/ia64/src/interrupt.c /kernel/trunk/arch/ia64/src/mm/tlb.c /kernel/trunk/arch/mips32/include/debugger.h /kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/include/mm/tlb.h /kernel/trunk/arch/mips32/include/thread.h /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/arch/mips32/src/drivers/arc.c /kernel/trunk/arch/mips32/src/drivers/msim.c /kernel/trunk/arch/mips32/src/drivers/serial.c /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/fpu_context.c /kernel/trunk/arch/mips32/src/interrupt.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/sparc64/include/drivers/tick.h /kernel/trunk/arch/sparc64/src/drivers/tick.c /kernel/trunk/genarch/src/i8042/i8042.c /kernel/trunk/generic/include/interrupt.h /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/interrupt/interrupt.c
|
955 |
6731 d 9 h |
palkovsky |
/kernel/trunk/ |
Added kernel IPC functionality. |
|
/kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/ipc /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/src/ipc /kernel/trunk/generic/src/ipc/ipc.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/include/types.h /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/amd64/src/syscall.c /kernel/trunk/arch/ia32/include/types.h /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia64/include/types.h /kernel/trunk/arch/mips32/include/types.h /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/sparc64/include/types.h /kernel/trunk/generic/include/mm/page.h /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/syscall/syscall.c
|
940 |
6732 d 10 h |
jermar |
/kernel/trunk/ |
Get rid of unneeded macros.
Their functionality has been replaced by the ELF loader. |
|
/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/ppc32/include/mm/as.h /kernel/trunk/arch/sparc64/include/mm/as.h /kernel/trunk/arch/sparc64/include/types.h /kernel/trunk/generic/include/mm/as.h
|
938 |
6732 d 10 h |
jermar |
/kernel/trunk/ |
Basic support for loading ELF object files.
ia64, amd64, ia32 working.
mips32 requires some attention. |
|
/kernel/trunk/generic/src/lib/elf.c
/kernel/trunk/generic/include/elf32.h /kernel/trunk/generic/include/elf64.h /kernel/trunk/generic/src/lib/elf32.c /kernel/trunk/generic/src/lib/elf64.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/amd64/_link.ld.in /kernel/trunk/arch/amd64/include/elf.h /kernel/trunk/arch/amd64/include/types.h /kernel/trunk/arch/amd64/src/userspace.c /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia32/include/elf.h /kernel/trunk/arch/ia32/include/types.h /kernel/trunk/arch/ia32/src/userspace.c /kernel/trunk/arch/ia64/Makefile.inc /kernel/trunk/arch/ia64/include/elf.h /kernel/trunk/arch/ia64/src/ia64.c /kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/mips32/include/elf.h /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/arch/ppc32/Makefile.inc /kernel/trunk/arch/ppc32/include/elf.h /kernel/trunk/arch/ppc32/include/types.h /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/elf.h /kernel/trunk/contrib/conf/msim.conf /kernel/trunk/contrib/conf/ski.conf /kernel/trunk/contrib/conf/spmips.conf /kernel/trunk/generic/include/elf.h /kernel/trunk/generic/include/userspace.h /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/uinit.c
|
910 |
6739 d 15 h |
bondari |
/kernel/trunk/ |
ELF framework for all archs. SPARC V9 not tested to compile. |
|
/kernel/trunk/arch/amd64/include/elf.h /kernel/trunk/arch/ia64/include/elf.h /kernel/trunk/arch/mips32/include/elf.h /kernel/trunk/arch/ppc32/include/elf.h /kernel/trunk/arch/sparc64/include/elf.h /kernel/trunk/generic/include/elf64.h /kernel/trunk/generic/src/lib/elf64.c
/kernel/trunk/Makefile /kernel/trunk/arch/ia32/include/elf.h /kernel/trunk/generic/include/elf32.h /kernel/trunk/generic/src/lib/elf32.c
|
906 |
6742 d 4 h |
palkovsky |
/kernel/trunk/ |
Added lazy fpu context allocation.
- threads that don't use fpu, don't get allocated fpu context
- fpu context alignment on AMD64 nicely disappeared |
|
/kernel/trunk/arch/amd64/src/fpu_context.c /kernel/trunk/arch/ia32/include/fpu_context.h /kernel/trunk/arch/ia32/src/fpu_context.c /kernel/trunk/arch/mips32/include/fpu_context.h /kernel/trunk/arch/mips32/src/fpu_context.c /kernel/trunk/generic/include/fpu_context.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c
|
897 |
6745 d 5 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Fix KBD_VIRT_ADDRESS.
Call before_thread_runs() prior to the switch to the thread's stack. Add comment why this is crucial.
Add after_thread_ran() to the scheduler.
Add before_thread_runs_arch() and after_thread_ran_arch() for sparc64, mapping/demapping thread's kernel stack.
Add dummy after_thread_ran_arch() to all other architectures.
Add dtlb_insert_mapping() to promote code reuse. |
|
/kernel/trunk/arch/sparc64/src/proc /kernel/trunk/arch/sparc64/src/proc/scheduler.c
/kernel/trunk/arch/amd64/src/proc/scheduler.c /kernel/trunk/arch/ia32/src/proc/scheduler.c /kernel/trunk/arch/ia64/src/dummy.s /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/arch/ppc32/src/dummy.s /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/drivers/i8042.h /kernel/trunk/arch/sparc64/include/mm/tlb.h /kernel/trunk/arch/sparc64/include/trap/exception.h /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/trap/exception.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S /kernel/trunk/generic/include/proc/scheduler.h /kernel/trunk/generic/src/proc/scheduler.c
|
895 |
6745 d 8 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Very raw and fragile preliminary standalone keyboard support - polling mode only.
Because of a workaround in Simics, the scan codes are the same as on ia32. |
|
/kernel/trunk/arch/amd64/include/drivers/i8042.h /kernel/trunk/arch/sparc64/include/drivers/i8042.h
/kernel/trunk/arch/amd64/include/i8042.h /kernel/trunk/arch/sparc64/include/drivers/keyboard.h
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/console.h /kernel/trunk/arch/sparc64/include/interrupt.h /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/start.S /kernel/trunk/genarch/include/i8042/i8042.h /kernel/trunk/genarch/src/i8042/i8042.c
|
894 |
6745 d 11 h |
jermar |
/kernel/trunk/ |
Move i8042 driver to genarch as it might be used by more architectures. |
|
/kernel/trunk/arch/amd64/include/drivers /kernel/trunk/arch/ia32/include/drivers /kernel/trunk/arch/ia32/include/drivers/i8042.h /kernel/trunk/arch/sparc64/include/drivers/keyboard.h /kernel/trunk/genarch/include/i8042 /kernel/trunk/genarch/include/i8042/i8042.h /kernel/trunk/genarch/src/i8042 /kernel/trunk/genarch/src/i8042/i8042.c
/kernel/trunk/arch/ia32/include/i8042.h /kernel/trunk/arch/ia32/src/drivers/i8042.c
/kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/amd64/src/amd64.c /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia32/src/ia32.c /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/genarch/Makefile.inc
|
860 |
6752 d 5 h |
decky |
/kernel/trunk/ |
indentation changes
ppc32 fpu context save/restore
ppc32 CPU version
ppc32 memcpy |
|
/kernel/trunk/arch/ppc32/include/cpuid.h /kernel/trunk/arch/ppc32/src/fpu_context.S
/kernel/trunk/arch/ppc32/src/fpu_context.c
/kernel/trunk/arch/amd64/include/cpuid.h /kernel/trunk/arch/ia32/include/cpuid.h /kernel/trunk/arch/mips32/include/context_offset.h /kernel/trunk/arch/ppc32/Makefile.inc /kernel/trunk/arch/ppc32/include/context_offset.h /kernel/trunk/arch/ppc32/include/cpu.h /kernel/trunk/arch/ppc32/include/fpu_context.h /kernel/trunk/arch/ppc32/src/asm.S /kernel/trunk/arch/ppc32/src/cpu/cpu.c /kernel/trunk/arch/sparc64/include/context_offset.h /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/proc/thread.c
|
832 |
6762 d 6 h |
jermar |
/kernel/trunk/ |
Change pt_mapping_remove() to deallocate frames for empty PTL1, PTL2 and PTL3. |
|
/kernel/trunk/arch/amd64/include/mm/page.h /kernel/trunk/arch/ia32/include/mm/page.h /kernel/trunk/arch/mips32/include/mm/page.h /kernel/trunk/doc/TODO /kernel/trunk/genarch/include/mm/page_pt.h /kernel/trunk/genarch/src/mm/page_pt.c
|
831 |
6762 d 12 h |
jermar |
/kernel/trunk/ |
Make use of one unused bit in PTE formats of amd64, ia32 and mips32 to store 1 in valid mappings.
This helps to distinguish valid entries from not present entries with 0 content (i.e. not present
entries with PFN 0 and other bits cleared). |
|
/kernel/trunk/arch/amd64/include/mm/page.h /kernel/trunk/arch/ia32/include/mm/page.h /kernel/trunk/arch/mips32/include/mm/page.h /kernel/trunk/arch/mips32/include/mm/tlb.h /kernel/trunk/arch/mips32/include/types.h /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/genarch/src/mm/asid_fifo.c
|
827 |
6763 d 5 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
|
825 |
6763 d 12 h |
jermar |
/kernel/trunk/ |
Remove WAKEUP_IPI stuff.
Make it possible to use PAGE_GLOBAL on ia32, amd64 and mips32.
Make ia32 and amd64 map the kernel using PAGE_GLOBAL. |
|
/kernel/trunk/arch/amd64/include/interrupt.h /kernel/trunk/arch/amd64/include/mm/page.h /kernel/trunk/arch/amd64/src/amd64.c /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/include/interrupt.h /kernel/trunk/arch/ia32/include/mm/page.h /kernel/trunk/arch/ia32/src/ia32.c /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/mips32/include/mm/page.h /kernel/trunk/contrib/conf/msim.conf
|
822 |
6764 d 6 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 |
6764 d 6 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
|
814 |
6764 d 16 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
|
809 |
6765 d 13 h |
palkovsky |
/kernel/trunk/arch/amd64/src/smp/ |
Simics GS patch even in SMP. |
|
/kernel/trunk/arch/amd64/src/smp/ap.S
|
808 |
6765 d 19 h |
palkovsky |
/kernel/trunk/arch/amd64/ |
Doc updates. |
|
/kernel/trunk/arch/amd64/include/mm/page.h /kernel/trunk/arch/amd64/src/asm_utils.S
|
807 |
6765 d 19 h |
palkovsky |
/kernel/trunk/arch/amd64/src/boot/ |
I'm unsure if simics is broken or the only one according to spec,
but SYSCALL now works even with simics. |
|
/kernel/trunk/arch/amd64/src/boot/boot.S
|