Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
867 |
6831 d 3 h |
jermar |
/kernel/trunk/ |
Move OFW functionality of ppc32 memory_init to genarch so that the code can also be used by sparc64.
sparc64 is now close to broken as it lacks functionality to provide identity mapping for the whole phyisical memory. |
|
/kernel/trunk/genarch/include/ofw/memory_init.h /kernel/trunk/genarch/src/ofw/memory_init.c
/kernel/trunk/arch/ppc32/include/mm/memory_init.h /kernel/trunk/arch/ppc32/src/mm/frame.c /kernel/trunk/arch/ppc32/src/mm/memory_init.c /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/mm/memory_init.h /kernel/trunk/arch/sparc64/include/trap/mmu.h /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/arch/sparc64/src/start.S /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/genarch/Makefile.inc
|
843 |
6836 d 21 h |
palkovsky |
/kernel/trunk/ |
Made powerpc to get on PearPC to the version print when compiled with -O1:
- create proper memory zones
- switch to real mode on boot
TODO
- kernel relocation during boot
- autodetection of framebuffer settings (PCI?) - now includes hardcoded
settings for PearPc. |
|
/kernel/trunk/arch/ppc32/include/asm/spr.h
/kernel/trunk/arch/ppc32/_link.ld.in /kernel/trunk/arch/ppc32/include/console.h /kernel/trunk/arch/ppc32/include/mm/memory_init.h /kernel/trunk/arch/ppc32/include/mm/page.h /kernel/trunk/arch/ppc32/src/console.c /kernel/trunk/arch/ppc32/src/mm/frame.c /kernel/trunk/arch/ppc32/src/mm/memory_init.c /kernel/trunk/arch/ppc32/src/ppc32.c /kernel/trunk/arch/ppc32/src/start.S /kernel/trunk/kernel.config
|
833 |
6840 d 17 h |
jermar |
/kernel/trunk/arch/ppc32/include/mm/ |
Fix ppc32 to at least compile again. |
|
/kernel/trunk/arch/ppc32/include/mm/page.h
|
823 |
6844 d 18 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
|
765 |
6850 d 20 h |
jermar |
/kernel/trunk/ |
Add PAGE_WIDTH to aid divisions by PAGE_SIZE. |
|
/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/src/mm/tlb.c /kernel/trunk/arch/ppc32/include/mm/page.h /kernel/trunk/arch/sparc64/include/mm/page.h /kernel/trunk/generic/src/mm/slab.c
|
763 |
6851 d 3 h |
jermar |
/kernel/trunk/ |
Modify frame.h to use shifting instead of multiplication and division.
Define FRAME_WIDTH for all architectures. |
|
/kernel/trunk/arch/amd64/include/mm/frame.h /kernel/trunk/arch/ia32/include/mm/frame.h /kernel/trunk/arch/ia64/include/mm/frame.h /kernel/trunk/arch/mips32/include/mm/frame.h /kernel/trunk/arch/ppc32/include/mm/frame.h /kernel/trunk/arch/sparc64/include/mm/frame.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/mm/slab.c
|
760 |
6851 d 5 h |
jermar |
/kernel/trunk/ |
mips32 is not supposed to allocate page table.
This is done by the generic code now.
Remove PTL0 pointer as it is not needed.
Remove GET_PTL0_ADDRESS from kernel.
Update sparc64 comments in barrier.h. |
|
/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/src/mm/page.c /kernel/trunk/arch/ppc32/include/mm/page.h /kernel/trunk/arch/sparc64/include/barrier.h /kernel/trunk/genarch/include/mm/page_pt.h
|
756 |
6852 d 18 h |
jermar |
/kernel/trunk/ |
Memory management work.
Remove the last (i.e. 'root') argument from page_mapping_insert() and page_mapping_find().
Page table address is now extracted from the first (i.e. 'as') argument.
Add a lot of infrastructure to make the above possible.
sparc64 is now broken, most likely because of insufficient identity mapping of physical memory. |
|
/kernel/trunk/arch/amd64/src/mm/as.c /kernel/trunk/arch/ia32/src/mm/as.c /kernel/trunk/arch/ia64/src/mm/as.c /kernel/trunk/arch/ppc32/src/mm/as.c /kernel/trunk/arch/sparc64/src/mm/as.c /kernel/trunk/genarch/include/mm/as_ht.h /kernel/trunk/genarch/include/mm/as_pt.h /kernel/trunk/genarch/src/mm/as_ht.c /kernel/trunk/genarch/src/mm/as_pt.c
/kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/amd64/include/mm/as.h /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia32/include/mm/as.h /kernel/trunk/arch/ia32/src/drivers/ega.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/ia32/src/smp/smp.c /kernel/trunk/arch/ia64/Makefile.inc /kernel/trunk/arch/ia64/include/mm/as.h /kernel/trunk/arch/ia64/include/mm/page.h /kernel/trunk/arch/ia64/src/mm/tlb.c /kernel/trunk/arch/mips32/include/mm/as.h /kernel/trunk/arch/mips32/src/mm/as.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/Makefile.inc /kernel/trunk/arch/ppc32/include/mm/as.h /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/mm/as.h /kernel/trunk/arch/sparc64/include/mm/frame.h /kernel/trunk/arch/sparc64/include/mm/page.h /kernel/trunk/genarch/Makefile.inc /kernel/trunk/genarch/include/mm/page_ht.h /kernel/trunk/genarch/include/mm/page_pt.h /kernel/trunk/genarch/src/acpi/acpi.c /kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/buddy.h /kernel/trunk/generic/include/mm/page.h /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/page.c /kernel/trunk/test/mm/mapping1/test.c
|
727 |
6864 d 19 h |
jermar |
/kernel/trunk/ |
New ASID management subsystem (initial work, more is required).
Some TLB invalidation changes. |
|
/kernel/trunk/genarch/src/mm/asid.c
/kernel/trunk/arch/ia32/include/mm/asid.h /kernel/trunk/arch/ia32/src/mm/tlb.c /kernel/trunk/arch/ia64/Makefile.inc /kernel/trunk/arch/ia64/include/mm/asid.h /kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/mips32/include/mm/asid.h /kernel/trunk/arch/mips32/src/mm/as.c /kernel/trunk/arch/mips32/src/mm/asid.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/include/mm/asid.h /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/mm/asid.h /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/genarch/Makefile.inc /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/asid.h /kernel/trunk/generic/include/mm/tlb.h /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/tlb.c
|
703 |
6871 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
|
569 |
6906 d 19 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Implement functions for reading IMMU and DMMU TLBs. |
|
/kernel/trunk/arch/amd64/include/mm/tlb.h /kernel/trunk/arch/ia32/include/mm/tlb.h /kernel/trunk/arch/ia64/include/mm/tlb.h /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/include/mm/tlb.h /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/barrier.h /kernel/trunk/arch/sparc64/include/mm/tlb.h /kernel/trunk/arch/sparc64/include/types.h /kernel/trunk/generic/include/mm/tlb.h /kernel/trunk/generic/src/mm/tlb.c
|
534 |
6910 d 22 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel again. |
|
/kernel
/SPARTAN
|
532 |
6910 d 22 h |
jermar |
/ |
Revert renaming of HelenOS/SPARTAN to HelenOS/kernel because of important pending patch. |
|
/SPARTAN
/kernel
|
501 |
6923 d 2 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel. |
|
/kernel
/SPARTAN
|
391 |
6971 d 19 h |
jermar |
/SPARTAN/trunk/ |
mips32 memory management work.
TLB Refill Exception implemented (passed basic testing).
Remove bit g from struct entry_hi.
Add generic find_mapping().
Add asid to vm_t type, define asid_t to hide architecture specific differences.
Implement ASID allocation for mips32, dummy for other architectures.
Add THE->vm (a.k.a. VM).
Add vm_install_arch().
Move pte_t definition to arch/types.h on each architecture.
Fix PTL manipulating functions on mips32 to shift pfn by 12 instead of by 14.
Fix tlb_init_arch() to initialize all entries.
Other.
Remove unnecessary header files from arch.h
Add missing headers here and there.
Remove two unnecessary ld flags from mips32 makefile. |
|
/SPARTAN/trunk/arch/amd64/include/mm/asid.h /SPARTAN/trunk/arch/ia32/include/mm/asid.h /SPARTAN/trunk/arch/ia64/include/mm/asid.h /SPARTAN/trunk/arch/mips32/src/mm/vm.c /SPARTAN/trunk/arch/ppc32/include/mm/asid.h
/SPARTAN/trunk/arch/amd64/include/mm/page.h /SPARTAN/trunk/arch/amd64/include/mm/vm.h /SPARTAN/trunk/arch/amd64/include/types.h /SPARTAN/trunk/arch/amd64/src/cpu/cpu.c /SPARTAN/trunk/arch/amd64/src/interrupt.c /SPARTAN/trunk/arch/ia32/include/mm/page.h /SPARTAN/trunk/arch/ia32/include/mm/vm.h /SPARTAN/trunk/arch/ia32/include/types.h /SPARTAN/trunk/arch/ia32/src/cpu/cpu.c /SPARTAN/trunk/arch/ia32/src/interrupt.c /SPARTAN/trunk/arch/ia64/include/mm/page.h /SPARTAN/trunk/arch/ia64/include/mm/vm.h /SPARTAN/trunk/arch/ia64/include/types.h /SPARTAN/trunk/arch/mips32/Makefile.inc /SPARTAN/trunk/arch/mips32/include/cp0.h /SPARTAN/trunk/arch/mips32/include/mm/asid.h /SPARTAN/trunk/arch/mips32/include/mm/page.h /SPARTAN/trunk/arch/mips32/include/mm/tlb.h /SPARTAN/trunk/arch/mips32/include/mm/vm.h /SPARTAN/trunk/arch/mips32/include/types.h /SPARTAN/trunk/arch/mips32/src/exception.c /SPARTAN/trunk/arch/mips32/src/mips32.c /SPARTAN/trunk/arch/mips32/src/mm/asid.c /SPARTAN/trunk/arch/mips32/src/mm/tlb.c /SPARTAN/trunk/arch/ppc32/include/mm/page.h /SPARTAN/trunk/arch/ppc32/include/mm/vm.h /SPARTAN/trunk/arch/ppc32/include/types.h /SPARTAN/trunk/include/arch.h /SPARTAN/trunk/include/mm/page.h /SPARTAN/trunk/include/mm/vm.h /SPARTAN/trunk/src/main/kinit.c /SPARTAN/trunk/src/mm/page.c /SPARTAN/trunk/src/mm/vm.c /SPARTAN/trunk/src/proc/the.c /SPARTAN/trunk/src/time/clock.c
|
389 |
6972 d 6 h |
jermar |
/SPARTAN/trunk/ |
MIPS work.
Fix some name inconsistencies between cp0 functions' declarations and definitions.
Add and implement tlb_init_arch().
Add tlb_modified() exception handler.
Other architectures: add dummy tlb_init_arch(). |
|
/SPARTAN/trunk/arch/amd64/include/mm/tlb.h /SPARTAN/trunk/arch/ia32/include/mm/tlb.h /SPARTAN/trunk/arch/ia64/include/mm/tlb.h /SPARTAN/trunk/arch/ppc32/include/mm/tlb.h
/SPARTAN/trunk/arch/mips32/include/cp0.h /SPARTAN/trunk/arch/mips32/include/mm/tlb.h /SPARTAN/trunk/arch/mips32/src/asm.S /SPARTAN/trunk/arch/mips32/src/exception.c /SPARTAN/trunk/arch/mips32/src/mm/tlb.c /SPARTAN/trunk/include/mm/tlb.h /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/mm/tlb.c
|
342 |
6994 d 4 h |
jermar |
/SPARTAN/trunk/arch/ |
Rename ppc port to ppc32. |
|
/SPARTAN/trunk/arch/mips32/src/mips32.c /SPARTAN/trunk/arch/ppc32
/SPARTAN/trunk/arch/mips32/src/mips.c /SPARTAN/trunk/arch/ppc
/SPARTAN/trunk/arch/mips32/Makefile.inc /SPARTAN/trunk/arch/ppc32/include/arch.h /SPARTAN/trunk/arch/ppc32/include/arg.h /SPARTAN/trunk/arch/ppc32/include/asm.h /SPARTAN/trunk/arch/ppc32/include/asm/macro.h /SPARTAN/trunk/arch/ppc32/include/atomic.h /SPARTAN/trunk/arch/ppc32/include/barrier.h /SPARTAN/trunk/arch/ppc32/include/byteorder.h /SPARTAN/trunk/arch/ppc32/include/context.h /SPARTAN/trunk/arch/ppc32/include/cpu.h /SPARTAN/trunk/arch/ppc32/include/drivers/ofw.h /SPARTAN/trunk/arch/ppc32/include/faddr.h /SPARTAN/trunk/arch/ppc32/include/fmath.h /SPARTAN/trunk/arch/ppc32/include/fpu_context.h /SPARTAN/trunk/arch/ppc32/include/interrupt.h /SPARTAN/trunk/arch/ppc32/include/mm/frame.h /SPARTAN/trunk/arch/ppc32/include/mm/memory_init.h /SPARTAN/trunk/arch/ppc32/include/mm/page.h /SPARTAN/trunk/arch/ppc32/include/mm/vm.h /SPARTAN/trunk/arch/ppc32/include/thread.h /SPARTAN/trunk/arch/ppc32/include/types.h
|
169 |
7016 d 19 h |
jermar |
/SPARTAN/trunk/arch/ |
For each architecture, add an extra type cast of x to __address to both KA2PA() and PA2KA(). |
|
/SPARTAN/trunk/arch/amd64/include/mm/page.h /SPARTAN/trunk/arch/ia32/include/mm/page.h /SPARTAN/trunk/arch/ia64/include/mm/page.h /SPARTAN/trunk/arch/mips/include/mm/page.h /SPARTAN/trunk/arch/ppc/include/mm/page.h
|
159 |
7025 d 19 h |
jermar |
/SPARTAN/trunk/arch/ppc/include/ |
Fix copyright dates. |
|
/SPARTAN/trunk/arch/ppc/include/cpu.h /SPARTAN/trunk/arch/ppc/include/interrupt.h /SPARTAN/trunk/arch/ppc/include/mm/page.h /SPARTAN/trunk/arch/ppc/include/thread.h /SPARTAN/trunk/arch/ppc/include/types.h
|
157 |
7026 d 3 h |
decky |
/SPARTAN/trunk/ |
remove cyclic including, change linker script path |
|
/SPARTAN/trunk/arch/ppc/Makefile.inc /SPARTAN/trunk/arch/ppc/include/mm/page.h /SPARTAN/trunk/src/mm/page.c
|
156 |
7026 d 6 h |
decky |
/SPARTAN/trunk/ |
PPC work in progress |
|
/SPARTAN/trunk/arch/ppc /SPARTAN/trunk/arch/ppc/include /SPARTAN/trunk/arch/ppc/include/arg.h /SPARTAN/trunk/arch/ppc/include/asm.h /SPARTAN/trunk/arch/ppc/include/atomic.h /SPARTAN/trunk/arch/ppc/include/barrier.h /SPARTAN/trunk/arch/ppc/include/context.h /SPARTAN/trunk/arch/ppc/include/cpu.h /SPARTAN/trunk/arch/ppc/include/faddr.h /SPARTAN/trunk/arch/ppc/include/fpu_context.h /SPARTAN/trunk/arch/ppc/include/interrupt.h /SPARTAN/trunk/arch/ppc/include/mm /SPARTAN/trunk/arch/ppc/include/mm/frame.h /SPARTAN/trunk/arch/ppc/include/mm/memory_init.h /SPARTAN/trunk/arch/ppc/include/mm/page.h /SPARTAN/trunk/arch/ppc/include/mm/vm.h /SPARTAN/trunk/arch/ppc/include/thread.h /SPARTAN/trunk/arch/ppc/include/types.h /SPARTAN/trunk/contrib/toolchain.ppc.sh /SPARTAN/trunk/src/build.ppc /SPARTAN/trunk/src/clean.ppc
/SPARTAN/trunk/arch/powerpc /SPARTAN/trunk/contrib/toolchain.powerpc.sh
/SPARTAN/trunk/arch/ppc/Makefile.inc
|