Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
394 |
6891 d 20 h |
jermar |
/SPARTAN/trunk/arch/mips32/ |
MIPS32 memory management work.
Fix some bugs introduced yesterday (PTL3 index is indeed calculated by >> 14).
Introduce two new bits in pte_t (i.e. 'a' and 'w').
Implement TLB Invalid Exception and TLB Modified Exception. (Needs review and testing) |
|
/SPARTAN/trunk/arch/mips32/include/mm/page.h /SPARTAN/trunk/arch/mips32/include/mm/tlb.h /SPARTAN/trunk/arch/mips32/include/types.h /SPARTAN/trunk/arch/mips32/src/mm/tlb.c
|
391 |
6892 d 20 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 |
6893 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
|
363 |
6907 d 20 h |
jermar |
/SPARTAN/trunk/arch/ |
Fix copyright notices. |
|
/SPARTAN/trunk/arch/amd64/include/memstr.h /SPARTAN/trunk/arch/ia32/include/asm.h /SPARTAN/trunk/arch/ia32/include/memstr.h /SPARTAN/trunk/arch/ia64/include/memstr.h /SPARTAN/trunk/arch/mips32/include/memstr.h /SPARTAN/trunk/arch/ppc32/include/memstr.h
|
361 |
6907 d 21 h |
bondari |
/SPARTAN/trunk/ |
Memory routines per-arch declations for future implementation |
|
/SPARTAN/trunk/arch/amd64/include/memstr.h /SPARTAN/trunk/arch/ia32/include/memstr.h /SPARTAN/trunk/arch/ia64/include/memstr.h /SPARTAN/trunk/arch/mips32/include/memstr.h /SPARTAN/trunk/arch/ppc32/include/memstr.h
/SPARTAN/trunk/arch/ia32/include/asm.h /SPARTAN/trunk/include/memstr.h
|
345 |
6914 d 21 h |
palkovsky |
/SPARTAN/trunk/arch/mips32/include/ |
|
|
/SPARTAN/trunk/arch/mips32/include/byteorder.h /SPARTAN/trunk/arch/mips32/include/drivers/arc.h
|
344 |
6914 d 21 h |
palkovsky |
/SPARTAN/trunk/ |
Added more code to arc.
Fixed bad name in byteorder.h |
|
/SPARTAN/trunk/arch/mips32/include/byteorder.h /SPARTAN/trunk/arch/mips32/include/drivers/arc.h /SPARTAN/trunk/arch/mips32/src/drivers/arc.c /SPARTAN/trunk/arch/mips32/src/mips32.c /SPARTAN/trunk/doc/requirements
|
341 |
6915 d 4 h |
jermar |
/SPARTAN/trunk/ |
Rename mips port to mips32. |
|
/SPARTAN/trunk/arch/mips32 /SPARTAN/trunk/doc/arch/mips32 /SPARTAN/trunk/src/build.mips32 /SPARTAN/trunk/src/build.ppc32 /SPARTAN/trunk/src/clean.mips32 /SPARTAN/trunk/src/clean.ppc32 /SPARTAN/trunk/tools/mips32
/SPARTAN/trunk/arch/mips /SPARTAN/trunk/doc/arch/mips /SPARTAN/trunk/src/build.mips /SPARTAN/trunk/src/build.ppc /SPARTAN/trunk/src/clean.mips /SPARTAN/trunk/src/clean.ppc /SPARTAN/trunk/tools/mips
/SPARTAN/trunk/arch/mips32/boot/_link.ld /SPARTAN/trunk/arch/mips32/include/arch.h /SPARTAN/trunk/arch/mips32/include/arg.h /SPARTAN/trunk/arch/mips32/include/asm.h /SPARTAN/trunk/arch/mips32/include/asm/boot.h /SPARTAN/trunk/arch/mips32/include/asm/regname.h /SPARTAN/trunk/arch/mips32/include/atomic.h /SPARTAN/trunk/arch/mips32/include/barrier.h /SPARTAN/trunk/arch/mips32/include/byteorder.h /SPARTAN/trunk/arch/mips32/include/cache.h /SPARTAN/trunk/arch/mips32/include/console.h /SPARTAN/trunk/arch/mips32/include/context.h /SPARTAN/trunk/arch/mips32/include/cp0.h /SPARTAN/trunk/arch/mips32/include/cpu.h /SPARTAN/trunk/arch/mips32/include/debug.h /SPARTAN/trunk/arch/mips32/include/drivers/arc.h /SPARTAN/trunk/arch/mips32/include/exception.h /SPARTAN/trunk/arch/mips32/include/faddr.h /SPARTAN/trunk/arch/mips32/include/fmath.h /SPARTAN/trunk/arch/mips32/include/fpu_context.h /SPARTAN/trunk/arch/mips32/include/interrupt.h /SPARTAN/trunk/arch/mips32/include/mm/asid.h /SPARTAN/trunk/arch/mips32/include/mm/frame.h /SPARTAN/trunk/arch/mips32/include/mm/memory_init.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/thread.h /SPARTAN/trunk/arch/mips32/include/types.h /SPARTAN/trunk/doc/requirements /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/tools/mips32/gencontext.c
|
338 |
6916 d 2 h |
jermar |
/SPARTAN/trunk/ |
Avoid code duplication by creating generic byteorder.h.
Some naming changes in swap functions. |
|
/SPARTAN/trunk/include/byteorder.h
/SPARTAN/trunk/arch/amd64/include/byteorder.h /SPARTAN/trunk/arch/ia32/include/byteorder.h /SPARTAN/trunk/arch/ia64/include/byteorder.h /SPARTAN/trunk/arch/mips/include/byteorder.h /SPARTAN/trunk/arch/ppc/include/byteorder.h /SPARTAN/trunk/src/debug/symtab.c
|
334 |
6916 d 4 h |
jermar |
/SPARTAN/trunk/arch/ |
Cleanup.
Cancel __fake in pm.c and replace it with LONG(0xdeadbeaf) in linker script. Still need some to find out why it must be there.
Remove comment saying, that mips is little-endian. |
|
/SPARTAN/trunk/arch/amd64/_link.ld.in /SPARTAN/trunk/arch/ia32/_link.ld.in /SPARTAN/trunk/arch/ia32/src/acpi/madt.c /SPARTAN/trunk/arch/ia32/src/pm.c /SPARTAN/trunk/arch/mips/include/byteorder.h
|
332 |
6916 d 5 h |
palkovsky |
/SPARTAN/trunk/ |
Updated symtab so that it works correctly with BE architectures.
Changed compiler for BE MIPS to be mips-sgi-irix5, because
mipsel -EB does not behave correctly.
Doc updates to amd64.
Added ARC BIOS support to MIPS architecture. Putchar works correctly,
kernel passed FPU & some rwlock tests. |
|
/SPARTAN/trunk/arch/mips/include/drivers /SPARTAN/trunk/arch/mips/include/drivers/arc.h /SPARTAN/trunk/arch/mips/src/drivers /SPARTAN/trunk/arch/mips/src/drivers/arc.c /SPARTAN/trunk/contrib/toolchain/toolchain.mipseb.sh /SPARTAN/trunk/contrib/toolchain/toolchain.mipsel.sh
/SPARTAN/trunk/contrib/toolchain/toolchain.mips.sh
/SPARTAN/trunk/arch/amd64/_link.ld.in /SPARTAN/trunk/arch/amd64/include/byteorder.h /SPARTAN/trunk/arch/amd64/src/asm_utils.S /SPARTAN/trunk/arch/amd64/src/fpu_context.c /SPARTAN/trunk/arch/amd64/src/pm.c /SPARTAN/trunk/arch/ia32/include/byteorder.h /SPARTAN/trunk/arch/ia64/include/byteorder.h /SPARTAN/trunk/arch/mips/Makefile.inc /SPARTAN/trunk/arch/mips/_link.ld.in /SPARTAN/trunk/arch/mips/include/byteorder.h /SPARTAN/trunk/arch/mips/include/console.h /SPARTAN/trunk/arch/mips/include/interrupt.h /SPARTAN/trunk/arch/mips/include/types.h /SPARTAN/trunk/arch/mips/src/asm.S /SPARTAN/trunk/arch/mips/src/console.c /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/interrupt.c /SPARTAN/trunk/arch/mips/src/mips.c /SPARTAN/trunk/arch/mips/src/mm/tlb.c /SPARTAN/trunk/arch/ppc/include/byteorder.h /SPARTAN/trunk/src/debug/symtab.c /SPARTAN/trunk/tools/genmap.py
|
330 |
6917 d 0 h |
palkovsky |
/SPARTAN/trunk/arch/mips/ |
Fixed bad address loading in simulators.
FPU cooprocessor unusable now checks, if it is FPU that is unusable. |
|
/SPARTAN/trunk/arch/mips/Makefile.inc /SPARTAN/trunk/arch/mips/boot/boot.S /SPARTAN/trunk/arch/mips/include/cp0.h /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/mips.c
|
329 |
6917 d 0 h |
palkovsky |
/SPARTAN/trunk/ |
Basic changes to boot it on SGI Indy. |
|
/SPARTAN/trunk/arch/mips/Makefile.inc /SPARTAN/trunk/arch/mips/_link.ld.in /SPARTAN/trunk/arch/mips/boot/Makefile /SPARTAN/trunk/arch/mips/boot/boot.S /SPARTAN/trunk/arch/mips/include/asm/boot.h /SPARTAN/trunk/arch/mips/include/console.h /SPARTAN/trunk/arch/mips/include/cp0.h /SPARTAN/trunk/arch/mips/include/interrupt.h /SPARTAN/trunk/arch/mips/include/mm/memory_init.h /SPARTAN/trunk/arch/mips/src/asm.S /SPARTAN/trunk/arch/mips/src/console.c /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/mm/frame.c /SPARTAN/trunk/test/fpu/mips1/test.c
|
326 |
6917 d 17 h |
palkovsky |
/SPARTAN/trunk/ |
Cleanup of makefiles to have common options in one main makefile.
Add simple build process for different simulators for MIPS.
Added FPU context & lazy FPU context switching to MIPS.
Cleanup of MIPS linker script.
Moved MIPS kernel above 1MB. Not tested on real machine yet, but it might help.
There is something broken with gcc inlined memcpy (either simulator or gcc), it is disabled on BigEndian mips now. |
|
/SPARTAN/trunk/arch/mips/_link.ld.in /SPARTAN/trunk/test/fpu/mips1 /SPARTAN/trunk/test/fpu/mips1/test.c
/SPARTAN/trunk/arch/mips/_link.ld
/SPARTAN/trunk/arch/amd64/Makefile.inc /SPARTAN/trunk/arch/amd64/src/fpu_context.c /SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia64/Makefile.inc /SPARTAN/trunk/arch/mips/Makefile.inc /SPARTAN/trunk/arch/mips/boot/boot.S /SPARTAN/trunk/arch/mips/include/asm.h /SPARTAN/trunk/arch/mips/include/asm/boot.h /SPARTAN/trunk/arch/mips/include/byteorder.h /SPARTAN/trunk/arch/mips/include/cp0.h /SPARTAN/trunk/arch/mips/include/exception.h /SPARTAN/trunk/arch/mips/include/fpu_context.h /SPARTAN/trunk/arch/mips/include/thread.h /SPARTAN/trunk/arch/mips/src/asm.S /SPARTAN/trunk/arch/mips/src/console.c /SPARTAN/trunk/arch/mips/src/dummy.S /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/fpu_context.c /SPARTAN/trunk/arch/mips/src/mips.c /SPARTAN/trunk/arch/mips/src/mm/frame.c /SPARTAN/trunk/arch/mips/src/panic.S /SPARTAN/trunk/arch/mips/src/start.S /SPARTAN/trunk/arch/ppc/Makefile.inc /SPARTAN/trunk/contrib/conf/msim.conf /SPARTAN/trunk/src/Makefile /SPARTAN/trunk/src/build.mips /SPARTAN/trunk/src/clean.mips
|
325 |
6918 d 1 h |
palkovsky |
/SPARTAN/trunk/arch/mips/include/ |
Forgotten file... |
|
/SPARTAN/trunk/arch/mips/include/console.h
|
319 |
6920 d 7 h |
jermar |
/SPARTAN/trunk/arch/mips/ |
Copyright notices changes. |
|
/SPARTAN/trunk/arch/mips/boot/boot.S /SPARTAN/trunk/arch/mips/include/asm.h /SPARTAN/trunk/arch/mips/include/asm/regname.h /SPARTAN/trunk/arch/mips/include/cache.h /SPARTAN/trunk/arch/mips/include/context.h /SPARTAN/trunk/arch/mips/include/cp0.h /SPARTAN/trunk/arch/mips/include/cpu.h /SPARTAN/trunk/arch/mips/include/exception.h /SPARTAN/trunk/arch/mips/include/interrupt.h /SPARTAN/trunk/arch/mips/include/mm/page.h /SPARTAN/trunk/arch/mips/include/mm/tlb.h /SPARTAN/trunk/arch/mips/include/thread.h /SPARTAN/trunk/arch/mips/include/types.h /SPARTAN/trunk/arch/mips/src/asm.S /SPARTAN/trunk/arch/mips/src/cache.c /SPARTAN/trunk/arch/mips/src/context.S /SPARTAN/trunk/arch/mips/src/cpu/cpu.c /SPARTAN/trunk/arch/mips/src/dummy.S /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/interrupt.c /SPARTAN/trunk/arch/mips/src/mips.c /SPARTAN/trunk/arch/mips/src/mm/page.c /SPARTAN/trunk/arch/mips/src/mm/tlb.c /SPARTAN/trunk/arch/mips/src/panic.S /SPARTAN/trunk/arch/mips/src/putchar.c /SPARTAN/trunk/arch/mips/src/start.S
|
317 |
6920 d 8 h |
palkovsky |
/SPARTAN/trunk/ |
MIPS exception now saves all necesssary information only on stack. |
|
/SPARTAN/trunk/arch/mips/include/context.h /SPARTAN/trunk/arch/mips/include/exception.h /SPARTAN/trunk/arch/mips/include/mm/tlb.h /SPARTAN/trunk/arch/mips/include/thread.h /SPARTAN/trunk/arch/mips/src/context.S /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/mm/tlb.c /SPARTAN/trunk/arch/mips/src/start.S /SPARTAN/trunk/src/clean.mips /SPARTAN/trunk/tools/mips/gencontext.c
|
313 |
6920 d 19 h |
palkovsky |
/SPARTAN/trunk/arch/ |
MIPS bug fixes.
Added usermode to MIPS, unfortunately impossible to test until
MM is ready. |
|
/SPARTAN/trunk/arch/mips/src/asm.S /SPARTAN/trunk/arch/mips/src/dummy.S /SPARTAN/trunk/arch/mips/src/panic.S
/SPARTAN/trunk/arch/mips/src/asm.s /SPARTAN/trunk/arch/mips/src/dummy.s /SPARTAN/trunk/arch/mips/src/panic.s
/SPARTAN/trunk/arch/amd64/src/userspace.c /SPARTAN/trunk/arch/mips/Makefile.inc /SPARTAN/trunk/arch/mips/include/asm.h /SPARTAN/trunk/arch/mips/include/asm/boot.h /SPARTAN/trunk/arch/mips/include/context.h /SPARTAN/trunk/arch/mips/include/cp0.h /SPARTAN/trunk/arch/mips/include/mm/vm.h /SPARTAN/trunk/arch/mips/include/thread.h /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/mips.c /SPARTAN/trunk/arch/mips/src/start.S
|
307 |
6921 d 8 h |
palkovsky |
/SPARTAN/trunk/ |
Fixed things broken by last commit. |
|
/SPARTAN/trunk/arch/mips/include/asm/boot.h
/SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/src/clean.mips
|
306 |
6921 d 9 h |
palkovsky |
/SPARTAN/trunk/ |
Fixed mips boot process.
On interrupt saving registers, save $lo, $hi.
Add interrupt naming to asm files (mips).
Save only necessary registers on context switch (see mips ABI).
Fixed copyright info. |
|
/SPARTAN/trunk/arch/mips/boot/boot.S /SPARTAN/trunk/arch/mips/include/asm/regname.h /SPARTAN/trunk/tools/mips /SPARTAN/trunk/tools/mips/gencontext.c
/SPARTAN/trunk/arch/amd64/include/barrier.h /SPARTAN/trunk/arch/mips/boot/boot.s /SPARTAN/trunk/arch/mips/include/asm/macro.h
/SPARTAN/trunk/arch/amd64/include/arch.h /SPARTAN/trunk/arch/amd64/include/context.h /SPARTAN/trunk/arch/amd64/include/faddr.h /SPARTAN/trunk/arch/amd64/include/thread.h /SPARTAN/trunk/arch/mips/boot/Makefile /SPARTAN/trunk/arch/mips/include/context.h /SPARTAN/trunk/arch/mips/include/mm/page.h /SPARTAN/trunk/arch/mips/src/context.S /SPARTAN/trunk/arch/mips/src/mm/tlb.c /SPARTAN/trunk/arch/mips/src/start.S /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/src/build.amd64 /SPARTAN/trunk/src/build.mips /SPARTAN/trunk/src/clean.mips
|