Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
394 |
6892 d 0 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
|
393 |
6892 d 2 h |
bondari |
/SPARTAN/trunk/arch/ia32/include/ |
Comments fixed |
|
/SPARTAN/trunk/arch/ia32/include/asm.h /SPARTAN/trunk/arch/ia32/include/memstr.h
|
392 |
6892 d 2 h |
bondari |
/SPARTAN/trunk/arch/ia32/ |
Last inline functions for IA-32 |
|
/SPARTAN/trunk/arch/ia32/include/memstr.h /SPARTAN/trunk/arch/ia32/src/asm.S /SPARTAN/trunk/arch/ia32/src/ia32.c
|
391 |
6892 d 23 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
|
390 |
6892 d 23 h |
bondari |
/SPARTAN/trunk/arch/ia32/ |
ia-32 memcmp inline |
|
/SPARTAN/trunk/arch/ia32/include/memstr.h /SPARTAN/trunk/arch/ia32/src/asm.S
|
389 |
6893 d 10 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
|
388 |
6894 d 8 h |
jermar |
/SPARTAN/trunk/arch/ia64/src/ |
IA-64 work.
Map interrupt vectors to their names. |
|
/SPARTAN/trunk/arch/ia64/src/interrupt_handler.c
|
387 |
6895 d 3 h |
jermar |
/SPARTAN/trunk/src/synch/ |
Doxygen-style comments for condvar.c. |
|
/SPARTAN/trunk/src/synch/condvar.c
|
386 |
6895 d 4 h |
jermar |
/SPARTAN/trunk/src/synch/ |
Doxygen-style comments for mutex.c. |
|
/SPARTAN/trunk/src/synch/mutex.c
|
385 |
6895 d 4 h |
jermar |
/SPARTAN/trunk/src/synch/ |
Doxygen-style comments for rwlock.c. |
|
/SPARTAN/trunk/src/synch/rwlock.c
|
384 |
6895 d 5 h |
jermar |
/SPARTAN/trunk/src/synch/ |
Doxygen-style comments for semaphore.c. |
|
/SPARTAN/trunk/src/synch/semaphore.c
|
383 |
6895 d 7 h |
jermar |
/SPARTAN/trunk/src/synch/ |
Doxygen-style comments for spinlock.c. |
|
/SPARTAN/trunk/src/synch/spinlock.c
|
382 |
6895 d 23 h |
jermar |
/SPARTAN/trunk/src/synch/ |
Doxygen-style comments for waitq.c. |
|
/SPARTAN/trunk/src/synch/waitq.c
|
381 |
6897 d 23 h |
jermar |
/SPARTAN/trunk/ |
Make cross-compiler the default compiler on IA-32.
For native compilations, use ./build.ia32 native.
Small changes elsewhere. |
|
/SPARTAN/trunk/Makefile.config /SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia32/_link.ld.in /SPARTAN/trunk/arch/ia32/src/asm.S /SPARTAN/trunk/build.ia32 /SPARTAN/trunk/include/fpu_context.h /SPARTAN/trunk/include/mm/buddy.h /SPARTAN/trunk/include/mm/heap.h /SPARTAN/trunk/include/typedefs.h /SPARTAN/trunk/src/mm/buddy.c
|
380 |
6898 d 1 h |
jermar |
/SPARTAN/trunk/include/ |
Implement splitting and concatenation for headless doubly-linked circular lists.
This is going to be needed during implementation of buddy system operations for zones.
Add doxygen-style comments to all functions in list.h. |
|
/SPARTAN/trunk/include/list.h
|
379 |
6899 d 8 h |
jermar |
/SPARTAN/trunk/src/mm/ |
Optimize buddy_system_free().
Remove special-case code from the main codepath. |
|
/SPARTAN/trunk/src/mm/buddy.c
|
378 |
6899 d 9 h |
jermar |
/SPARTAN/trunk/ |
Redeclare eraly_malloc() with __attribute__ ((malloc)) to improve optimizations.
Reorganize #include's in scheduler.c.
Buddy system improvements.
Make buddy_system_free() explicitly invalidate order of blocks before they are coalesced.
Add some assertions. |
|
/SPARTAN/trunk/include/mm/buddy.h /SPARTAN/trunk/include/mm/heap.h /SPARTAN/trunk/src/mm/buddy.c /SPARTAN/trunk/src/proc/scheduler.c
|
377 |
6902 d 1 h |
jermar |
/SPARTAN/trunk/ |
Generic buddy allocator.
Please review the code before it is deployed. |
|
/SPARTAN/trunk/include/mm/buddy.h /SPARTAN/trunk/src/mm/buddy.c
/SPARTAN/trunk/Makefile /SPARTAN/trunk/include/typedefs.h
|
376 |
6902 d 5 h |
jermar |
/SPARTAN/trunk/ |
Move kernel build files one level up the directory tree.
Fix paths in your testing environment! |
|
/SPARTAN/trunk/Makefile /SPARTAN/trunk/Makefile.config /SPARTAN/trunk/build.amd64 /SPARTAN/trunk/build.ia32 /SPARTAN/trunk/build.ia64 /SPARTAN/trunk/build.mips32 /SPARTAN/trunk/build.ppc32 /SPARTAN/trunk/clean.amd64 /SPARTAN/trunk/clean.ia32 /SPARTAN/trunk/clean.ia64 /SPARTAN/trunk/clean.mips32 /SPARTAN/trunk/clean.ppc32
/SPARTAN/trunk/src/Makefile /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/src/build.amd64 /SPARTAN/trunk/src/build.ia32 /SPARTAN/trunk/src/build.ia64 /SPARTAN/trunk/src/build.mips32 /SPARTAN/trunk/src/build.ppc32 /SPARTAN/trunk/src/clean.amd64 /SPARTAN/trunk/src/clean.ia32 /SPARTAN/trunk/src/clean.ia64 /SPARTAN/trunk/src/clean.mips32 /SPARTAN/trunk/src/clean.ppc32
/SPARTAN/trunk/arch/amd64/Makefile.inc /SPARTAN/trunk/arch/amd64/boot/Makefile /SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia32/boot/Makefile /SPARTAN/trunk/arch/ia64/Makefile.inc /SPARTAN/trunk/arch/ia64/boot/Makefile /SPARTAN/trunk/arch/mips32/Makefile.inc /SPARTAN/trunk/arch/mips32/boot/Makefile /SPARTAN/trunk/arch/ppc32/Makefile.inc /SPARTAN/trunk/arch/ppc32/boot/Makefile /SPARTAN/trunk/contrib/conf/SPMIPS.simics /SPARTAN/trunk/contrib/conf/dot.bochsrc /SPARTAN/trunk/contrib/conf/ski.conf
|
375 |
6902 d 5 h |
jermar |
/SPARTAN/trunk/src/mm/ |
Replace free() call with early_free() call in zone_create(). |
|
/SPARTAN/trunk/src/mm/frame.c
|
374 |
6903 d 23 h |
jermar |
/SPARTAN/trunk/ |
Revert previous change in frame_t as it broke IA-64.
(Most likely some alignment problem.)
Rename heap_init(), malloc() and free(), respectively, to early_heap_init(), early_malloc() and early_free(), respectively.
Define new macros malloc() and free(). They are to be replaced by real functions some day. |
|
/SPARTAN/trunk/include/mm/frame.h /SPARTAN/trunk/include/mm/heap.h /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/mm/frame.c /SPARTAN/trunk/src/mm/heap.c
|
373 |
6904 d 1 h |
jermar |
/SPARTAN/trunk/ |
Physical memory management work.
Add "__attribute__ ((packed))" to frame_t so that it takes up less space.
Note that this is essential as there is lot of these structures.
Remove busy list from zone_t as it is redundant. |
|
/SPARTAN/trunk/include/mm/frame.h /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/mm/frame.c
|
372 |
6905 d 7 h |
cejka |
/SPARTAN/trunk/arch/ia32/src/mm/ |
Memmap print fixed. |
|
/SPARTAN/trunk/arch/ia32/src/mm/memory_init.c
|
371 |
6905 d 23 h |
jermar |
/SPARTAN/trunk/arch/ia32/src/ |
Complete map_kernel() in boot.S to map the entire 4G space.
Change IA-32 frame_arch_init() to add zone with lower base addresses first. |
|
/SPARTAN/trunk/arch/ia32/src/boot/boot.S /SPARTAN/trunk/arch/ia32/src/mm/frame.c
|
370 |
6906 d 0 h |
jermar |
/SPARTAN/trunk/arch/ia32/src/acpi/ |
During MADT parse, count only enabled CPUs. |
|
/SPARTAN/trunk/arch/ia32/src/acpi/madt.c
|
369 |
6906 d 2 h |
jermar |
/SPARTAN/trunk/src/main/ |
The more physical frames, the more memory allocated for heap. |
|
/SPARTAN/trunk/src/main/main.c
|
368 |
6906 d 8 h |
jermar |
/SPARTAN/trunk/ |
Physical memory management work.
New frame allocator.
Some architectures need to have bigger heap. |
|
/SPARTAN/trunk/arch/ia64/src/mm /SPARTAN/trunk/arch/ia64/src/mm/frame.c
/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/ia32/src/smp/mps.c /SPARTAN/trunk/arch/ia64/Makefile.inc /SPARTAN/trunk/arch/ia64/src/dummy.s /SPARTAN/trunk/arch/mips32/src/mm/frame.c /SPARTAN/trunk/arch/ppc32/src/mm/frame.c /SPARTAN/trunk/include/mm/frame.h /SPARTAN/trunk/src/mm/frame.c
|
367 |
6906 d 23 h |
jermar |
/SPARTAN/trunk/ |
Physical memory management work.
Implement zone_*() and some frame_*() functions. |
|
/SPARTAN/trunk/include/mm/frame.h /SPARTAN/trunk/src/mm/frame.c
|
366 |
6907 d 0 h |
jermar |
/SPARTAN/trunk/include/ |
Add zone pointer to frame_t.
This will be essential for fast frame_free().
Rename frame_zone_t to zone_t.
Declare frame and zone functions to be implemented. |
|
/SPARTAN/trunk/include/mm/frame.h /SPARTAN/trunk/include/typedefs.h
|
365 |
6907 d 0 h |
jermar |
/SPARTAN/trunk/ |
Replace #define's in list.h with type-safe inlines.
Update mips32 documentation. |
|
/SPARTAN/trunk/doc/arch/mips32 /SPARTAN/trunk/include/list.h
|
364 |
6907 d 11 h |
palkovsky |
/SPARTAN/trunk/ |
Added support for msim with 4kc instructions.
Fixed support for upstream msim.
Small boot fix on Indy. |
|
/SPARTAN/trunk/arch/mips32/Makefile.inc /SPARTAN/trunk/arch/mips32/src/drivers/arc.c /SPARTAN/trunk/src/build.mips32
|
363 |
6908 d 0 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
|
362 |
6908 d 1 h |
bondari |
/SPARTAN/trunk/include/ |
Some junk code removed |
|
/SPARTAN/trunk/include/memstr.h
|
361 |
6908 d 1 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
|
360 |
6908 d 8 h |
jermar |
/SPARTAN/trunk/ |
Compilation fixes.
memcpy() must be declared in memstr.h |
|
/SPARTAN/trunk/include/memstr.h /SPARTAN/trunk/src/lib/memstr.c
|
359 |
6909 d 0 h |
bondari |
/SPARTAN/trunk/arch/ia32/include/ |
I think some comments to the algoritm would be helful |
|
/SPARTAN/trunk/arch/ia32/include/asm.h
|
358 |
6909 d 0 h |
bondari |
/SPARTAN/trunk/ |
built-in memcpy is not used anymore on IA-32.
IA-32 memcpy is now fast and inline. |
|
/SPARTAN/trunk/arch/ia32/include/asm.h /SPARTAN/trunk/arch/ia32/src/asm.S /SPARTAN/trunk/include/memstr.h
|
357 |
6909 d 1 h |
bondari |
/SPARTAN/trunk/arch/ia32/src/ |
small fix |
|
/SPARTAN/trunk/arch/ia32/src/asm.S
|
356 |
6909 d 2 h |
bondari |
/SPARTAN/trunk/arch/ia32/ |
Get from port functions are now inline |
|
/SPARTAN/trunk/arch/ia32/include/asm.h /SPARTAN/trunk/arch/ia32/src/asm.S
|
355 |
6909 d 6 h |
jermar |
/SPARTAN/trunk/include/mm/ |
Add 'base' attribute to frame_zone_t structure. |
|
/SPARTAN/trunk/include/mm/frame.h
|