Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
125 |
6972 d 21 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
|
124 |
6972 d 23 h |
decky |
/SPARTAN/trunk/arch/mips/ |
fix EXC_Mod define
enhance interrupt handling |
|
/SPARTAN/trunk/arch/mips/include/exception.h /SPARTAN/trunk/arch/mips/src/asm.s /SPARTAN/trunk/arch/mips/src/interrupt.c
|
123 |
6972 d 23 h |
decky |
/SPARTAN/trunk/arch/mips/ |
handle more MIPS exceptions |
|
/SPARTAN/trunk/arch/mips/include/exception.h /SPARTAN/trunk/arch/mips/src/exception.c
|
121 |
6973 d 21 h |
jermar |
/SPARTAN/trunk/ |
Begin MIPS implementation of 4-level page table interface.
Add email address to each item in doc/AUTHORS.
Correct type names in comments in mm/vm.c.
Introduce ptl0 pointer in vm_t. |
|
/SPARTAN/trunk/arch/ia64/include/mm/page.h /SPARTAN/trunk/arch/mips/include/mm/frame.h /SPARTAN/trunk/arch/mips/include/mm/page.h /SPARTAN/trunk/arch/mips/include/mm/tlb.h /SPARTAN/trunk/arch/mips/src/mm/page.c /SPARTAN/trunk/doc/AUTHORS /SPARTAN/trunk/include/mm/page.h /SPARTAN/trunk/include/mm/vm.h /SPARTAN/trunk/src/mm/vm.c
|
120 |
6987 d 20 h |
jermar |
/SPARTAN/trunk/ |
Generic 4-level page tables interface & implementation (review & test).
Implement more architecture dependant macros on IA-32.
Provide fake implementation on IA-64 and MIPS.
Convert map_page_to_frame() to use the new interface.
Move adjusted map_page_to_frame() from IA-32's arch/mm/page.c to the generic mm/page.c. |
|
/SPARTAN/trunk/arch/ia32/include/mm/page.h /SPARTAN/trunk/arch/ia32/src/mm/page.c /SPARTAN/trunk/arch/ia64/include/mm/page.h /SPARTAN/trunk/arch/ia64/src/fake.s /SPARTAN/trunk/arch/mips/include/mm/page.h /SPARTAN/trunk/arch/mips/src/mm/page.c /SPARTAN/trunk/include/mm/page.h /SPARTAN/trunk/include/typedefs.h /SPARTAN/trunk/src/mm/page.c
|
113 |
7011 d 19 h |
jermar |
/SPARTAN/trunk/ |
SMP recovery patch #2 (SMP is no longer broken !!!).
Fix missing KA2PA() operation in ap.S which was causing page faults during AP early initialization.
Fix bug in map_page_to_frame(): 'root' was interpretted as kernel address while read_dba() returns physical address.
Make references to page directory and page tables use kernel addresses instead of physical addresses.
Massive frame allocation code cleanup.
Basically revert to what we had had before implementation of userspace.
Usual cosmetics. |
|
/SPARTAN/trunk/arch/ia32/src/boot/boot.S /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/smp/ap.S /SPARTAN/trunk/arch/ia32/src/smp/mps.c /SPARTAN/trunk/arch/mips/src/mm/frame.c /SPARTAN/trunk/src/mm/frame.c /SPARTAN/trunk/src/proc/scheduler.c
|
112 |
7011 d 23 h |
jermar |
/SPARTAN/trunk/ |
Define two placeholder functions for atomic_inc and atomic_dec on IA-64.
Add Ondrej Palkovsky to doc/AUTHORS.
Tweaks in IA-32 low level code to bring SMP back to life. (SMP still broken) |
|
/SPARTAN/trunk/arch/ia32/src/boot/boot.S /SPARTAN/trunk/arch/ia32/src/pm.c /SPARTAN/trunk/arch/ia32/src/smp/ap.S /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/arch/ia64/include/atomic.h /SPARTAN/trunk/arch/mips/include/atomic.h /SPARTAN/trunk/doc/AUTHORS /SPARTAN/trunk/doc/requirements /SPARTAN/trunk/src/Makefile.config
|
111 |
7011 d 23 h |
palkovsky |
/SPARTAN/trunk/ |
Code cleanup in scheduler.c thread.c - removed unnecessary spinlock.
atomic_inc, atomic_dec moved to arch/atomic.h instead of arch/smp/atomic.h,
advisable to use even in non-smp mode.
Fixed atomic_inc, atomic_dec in mips architecture. |
|
/SPARTAN/trunk/arch/ia32/include/atomic.h /SPARTAN/trunk/arch/ia32/src/atomic.S /SPARTAN/trunk/arch/mips/include/atomic.h
/SPARTAN/trunk/arch/ia32/include/smp/atomic.h /SPARTAN/trunk/arch/ia32/src/smp/atomic.S /SPARTAN/trunk/arch/mips/include/smp/atomic.h
/SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/mips/_link.ld /SPARTAN/trunk/include/proc/scheduler.h /SPARTAN/trunk/src/Makefile /SPARTAN/trunk/src/mm/tlb.c /SPARTAN/trunk/src/proc/scheduler.c /SPARTAN/trunk/src/proc/thread.c /SPARTAN/trunk/src/synch/spinlock.c /SPARTAN/trunk/src/time/clock.c /SPARTAN/trunk/test/fpu/fpu1/test.c /SPARTAN/trunk/test/synch/rwlock1/test.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
|
110 |
7013 d 4 h |
jermar |
/SPARTAN/trunk/ |
SMP recovery patch #1. (SMP still broken)
Move ap_boot() to K_TEXT_START_2 section.
Change ap_boot() to cope with mapping of kernel address space.
Change some addresses in mps.c from kernel to physical.
MIPS.
Move msim dprinter device to 0xB0000000.
This address is from kseg1 (unmapped, uncached) segment. |
|
/SPARTAN/trunk/arch/ia32/_link.ld /SPARTAN/trunk/arch/ia32/src/boot/boot.S /SPARTAN/trunk/arch/ia32/src/boot/memmap.S /SPARTAN/trunk/arch/ia32/src/mm/page.c /SPARTAN/trunk/arch/ia32/src/pm.c /SPARTAN/trunk/arch/ia32/src/smp/ap.S /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/arch/ia32/src/smp/mps.c /SPARTAN/trunk/arch/mips/src/putchar.c /SPARTAN/trunk/doc/arch/mips /SPARTAN/trunk/src/Makefile.config
|
109 |
7015 d 0 h |
jermar |
/SPARTAN/trunk/ |
Discard 'copy' parameter of map_page_to_frame().
Introduce 'root' parameter of map_page_to_frame().
If 'root' is zero, page directory address is read from CPU.
Otherwise 'root' is used as page directory address.
Add missing word to new doxygen-style comments in scheduler.c. |
|
/SPARTAN/trunk/arch/ia32/src/mm/page.c /SPARTAN/trunk/arch/mips/src/mm/page.c /SPARTAN/trunk/include/mm/page.h /SPARTAN/trunk/src/proc/scheduler.c
|
106 |
7015 d 6 h |
jermar |
/SPARTAN/trunk/ |
IA-32 fixes.
Use kernel addresses instead of physical addresses in map_page_to_frame().
Physical addresses are supposed to only be exported to mm hardware.
Because of this fix, userspace is functional again.
Remap EGA videoram to (0x80000000 + videoram) and change the ega driver to work with the new address.
Minor cosmetics through out the code.
Changes in linker scripts. |
|
/SPARTAN/trunk/arch/ia32/_link.ld /SPARTAN/trunk/arch/ia32/include/mm/vm.h /SPARTAN/trunk/arch/ia32/src/asm.s /SPARTAN/trunk/arch/ia32/src/drivers/ega.c /SPARTAN/trunk/arch/ia32/src/mm/page.c /SPARTAN/trunk/arch/ia32/src/userspace.c /SPARTAN/trunk/arch/ia64/_link.ld /SPARTAN/trunk/arch/ia64/src/start.S /SPARTAN/trunk/arch/mips/_link.ld /SPARTAN/trunk/src/main/main.c
|
105 |
7015 d 19 h |
jermar |
/SPARTAN/trunk/ |
Big changes in IA-32 address space map.
Now the kernel is mapped above 0x80000000. Finally!
Userspace address space starts at 0x00000000.
Changes in many places.
This improvement temporarily breaks SMP and most likely also other stuff.
Supported size of memory is now only 4M as it is the biggest size that can be mapped at once on IA-32.
Changes in linker script.
Changes required because of the above.
Do not patch hardcoded_* variables but assign to them instead.
Cosmetic changes here and there. |
|
/SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia32/_link.ld /SPARTAN/trunk/arch/ia32/include/mm/page.h /SPARTAN/trunk/arch/ia32/include/mm/vm.h /SPARTAN/trunk/arch/ia32/include/pm.h /SPARTAN/trunk/arch/ia32/src/boot/boot.S /SPARTAN/trunk/arch/ia32/src/boot/memmap.S /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/ia64/include/mm/vm.h /SPARTAN/trunk/arch/mips/include/mm/vm.h /SPARTAN/trunk/arch/mips/src/asm.s /SPARTAN/trunk/doc/AUTHORS /SPARTAN/trunk/include/config.h /SPARTAN/trunk/src/main/main.c
|
103 |
7018 d 0 h |
jermar |
/SPARTAN/trunk/ |
Just cleanup. |
|
/SPARTAN/trunk/arch/ia32/src/context.s /SPARTAN/trunk/arch/ia32/src/interrupt.c /SPARTAN/trunk/arch/ia64/src/fpu_context.c /SPARTAN/trunk/arch/mips/src/fpu_context.c /SPARTAN/trunk/arch/powerpc/src/fpu_context.c /SPARTAN/trunk/doc/TODO /SPARTAN/trunk/src/time/timeout.c
|
92 |
7029 d 2 h |
jermar |
/SPARTAN/trunk/ |
FPU work.
FPU code cleanup, add/fix copyright notices where needed.
Fix PI calculation to use double n instead of int n.
Make FPU test #1 even more stressing.
Re-enable O3 again.
Revert Makefile.config not to compile in any tests. |
|
/SPARTAN/trunk/arch/ia32/Makefile.inc /SPARTAN/trunk/arch/ia32/include/fpu_context.h /SPARTAN/trunk/arch/ia32/src/fpu_context.c /SPARTAN/trunk/arch/ia32/src/interrupt.c /SPARTAN/trunk/arch/ia64/include/fpu_context.h /SPARTAN/trunk/arch/ia64/src/fpu_context.c /SPARTAN/trunk/arch/mips/include/fpu_context.h /SPARTAN/trunk/arch/mips/src/fpu_context.c /SPARTAN/trunk/include/fpu_context.h /SPARTAN/trunk/src/Makefile.config /SPARTAN/trunk/test/fpu/fpu1/test.c
|
81 |
7031 d 22 h |
jermar |
/SPARTAN/trunk/ |
Add SP_DELTA macro for each architecture.
On IA-32, this macro represents two doublewords that must be on the stack when switching to a new stack.
On MIPS, there is no need to fix sp when switching to a new stack.
On IA-64, this macro is used to allocate the 16-byte scratch area.
IA-64 work.
Changes in start.S. More changes to come.
Define memcopy().
Janitorial fixes.
Add missing #include <panic.h> to rwlock4/test.c.
Remove wrong use of inline keyword from both declaration and definition of l_apic_id(). |
|
/SPARTAN/trunk/arch/ia32/include/context.h /SPARTAN/trunk/arch/ia32/include/smp/apic.h /SPARTAN/trunk/arch/ia32/src/smp/apic.c /SPARTAN/trunk/arch/ia64/include/context.h /SPARTAN/trunk/arch/ia64/src/asm.S /SPARTAN/trunk/arch/ia64/src/start.S /SPARTAN/trunk/arch/mips/include/context.h /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/proc/scheduler.c /SPARTAN/trunk/src/proc/thread.c /SPARTAN/trunk/test/synch/rwlock4/test.c
|
76 |
7036 d 23 h |
jermar |
/SPARTAN/trunk/ |
For each architecture, add function/macro FADDR that calculates absolute address of a function referenced by void (* f)(void).
IA-32 and MIPS gcc's use direct addressing (f == FADDR(f)) while IA-64 gcc uses indirect addressing (f != FADDR(f)).
Tweaks in IA-64 Makefile.inc to declare constant gp and main Makefile to consider ASFLAGS when compiling .s targets. |
|
/SPARTAN/trunk/arch/ia32/include/faddr.h /SPARTAN/trunk/arch/ia64/include/faddr.h /SPARTAN/trunk/arch/mips/include/faddr.h
/SPARTAN/trunk/arch/ia64/Makefile.inc /SPARTAN/trunk/src/Makefile /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/proc/scheduler.c /SPARTAN/trunk/src/proc/thread.c
|
68 |
7037 d 23 h |
decky |
/SPARTAN/trunk/ |
NDEBUG debug symbol, ASSERT debug macro, fancier panic() in debug mode
indentation fixes, ASSERTs |
|
/SPARTAN/trunk/arch/ia32/src/debug/panic.s /SPARTAN/trunk/arch/ia32/src/interrupt.c /SPARTAN/trunk/arch/ia32/src/pm.c /SPARTAN/trunk/arch/ia32/src/smp/mps.c /SPARTAN/trunk/arch/ia64/src/fake.s /SPARTAN/trunk/arch/mips/src/cache.c /SPARTAN/trunk/arch/mips/src/exception.c /SPARTAN/trunk/arch/mips/src/interrupt.c /SPARTAN/trunk/arch/mips/src/mm/tlb.c /SPARTAN/trunk/arch/mips/src/panic.s /SPARTAN/trunk/include/list.h /SPARTAN/trunk/include/panic.h /SPARTAN/trunk/include/print.h /SPARTAN/trunk/include/typedefs.h /SPARTAN/trunk/src/debug/print.c /SPARTAN/trunk/src/main/kinit.c /SPARTAN/trunk/src/main/main.c /SPARTAN/trunk/src/mm/frame.c /SPARTAN/trunk/src/mm/heap.c /SPARTAN/trunk/src/mm/vm.c /SPARTAN/trunk/src/proc/scheduler.c /SPARTAN/trunk/src/synch/rwlock.c /SPARTAN/trunk/src/time/timeout.c
|
63 |
7038 d 2 h |
decky |
/SPARTAN/trunk/ |
const qualifier for print functions |
|
/SPARTAN/trunk/arch/ia32/include/ega.h /SPARTAN/trunk/arch/ia32/src/drivers/ega.c /SPARTAN/trunk/arch/ia64/src/putchar.c /SPARTAN/trunk/arch/mips/src/putchar.c /SPARTAN/trunk/include/print.h /SPARTAN/trunk/include/putchar.h /SPARTAN/trunk/src/debug/print.c
|
59 |
7038 d 19 h |
jermar |
/SPARTAN/trunk/ |
Move architecture independent memcopy() and memsetb() out of MIPS subtree and place them in src/lib/ as _memcopy() and _memsetb().
Add MIPS native memsetb().
Add IA-64 native memcpy().
More complete and *almost* functional versions of IA-64 context_save() and context_restore(). |
|
/SPARTAN/trunk/arch/ia64/src/asm.S /SPARTAN/trunk/src/lib/memstr.c
/SPARTAN/trunk/arch/mips/src/lib
/SPARTAN/trunk/arch/ia64/Makefile.inc /SPARTAN/trunk/arch/ia64/include/context.h /SPARTAN/trunk/arch/ia64/src/context.S /SPARTAN/trunk/arch/mips/Makefile.inc /SPARTAN/trunk/arch/mips/src/asm.s /SPARTAN/trunk/include/memstr.h /SPARTAN/trunk/src/Makefile
|
57 |
7040 d 19 h |
vana |
/SPARTAN/trunk/ |
Begin support for FPU context switching on platforms which can't do it in lazy way. |
|
/SPARTAN/trunk/arch/ia32/src/fpu_context.c /SPARTAN/trunk/arch/ia64/src/fpu_context.c /SPARTAN/trunk/arch/mips/src/fpu_context.c /SPARTAN/trunk/arch/powerpc/src/fpu_context.c /SPARTAN/trunk/include/fpu_context.h /SPARTAN/trunk/include/proc/thread.h /SPARTAN/trunk/src/proc/scheduler.c
|