Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
659 |
6813 d 3 h |
jermar |
/kernel/trunk/ |
Make the kernel compile with -Wall. |
|
/kernel/trunk/Makefile /kernel/trunk/arch/ia64/src/fmath.c /kernel/trunk/arch/ppc32/src/fmath.c /kernel/trunk/arch/ppc32/src/mm/memory_init.c /kernel/trunk/genarch/src/acpi/acpi.c /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/time/timeout.c
|
658 |
6813 d 3 h |
jermar |
/kernel/trunk/arch/sparc64/include/ |
sparc64 work.
Add functions to read and write TICK and TICK_compare registers.
Add types describing TICK and TICK_compare registers. |
|
/kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/mm/mmu.h /kernel/trunk/arch/sparc64/include/mm/tlb.h /kernel/trunk/arch/sparc64/include/register.h
|
657 |
6813 d 14 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Context again. It turns out, according to SCD 2.4, that registers that didn't have to be saved were saved (%o1 - %o5) and
registers that had to be saved were not saved (%i0 - %i5, %l0 - %l7). |
|
/kernel/trunk/arch/sparc64/include/context.h /kernel/trunk/arch/sparc64/include/context_offset.h /kernel/trunk/arch/sparc64/src/context.S /kernel/trunk/tools/sparc64/gencontext.c
|
655 |
6814 d 19 h |
jermar |
/kernel/trunk/arch/ |
Compilation fixes. |
|
/kernel/trunk/arch/ia64/include/memstr.h /kernel/trunk/arch/mips32/include/memstr.h /kernel/trunk/arch/ppc32/include/memstr.h
|
651 |
6815 d 13 h |
decky |
/kernel/trunk/ |
remove arch/$ARCH/boot where not needed, change global Makefile accordingly
remove early_mapping() (breaks ppc32 for now)
change early heap initialization (required for init to work) |
|
/kernel/trunk/arch/ia32/boot /kernel/trunk/arch/sparc64/boot
/kernel/trunk/Makefile /kernel/trunk/arch/ppc32/include/arch.h /kernel/trunk/generic/include/arch.h /kernel/trunk/generic/include/config.h /kernel/trunk/generic/src/main/main.c
|
650 |
6815 d 15 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Implement interrupt_disable(), interrupt_enable(), interrupt_restore() and interrupt_read() functions.
Fix context save/restore to save/restore register %i7. |
|
/kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/context.h /kernel/trunk/arch/sparc64/include/context_offset.h /kernel/trunk/arch/sparc64/include/register.h /kernel/trunk/arch/sparc64/src/context.S /kernel/trunk/arch/sparc64/src/dummy.s /kernel/trunk/generic/include/debug.h /kernel/trunk/generic/src/proc/scheduler.c
|
646 |
6816 d 15 h |
jermar |
/kernel/trunk/ |
Fix cpu_init(): frame_alloc() can return 0 as the valid address of block of frames. Do not signal error.
sparc64 work.
Reorganize kernel vs. userspace memory layout.
Add panic_printf().
Turn dummy() into nop rather than into infinite loop. |
|
/kernel/trunk/arch/sparc64/src/panic.S
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/mm/page.h /kernel/trunk/arch/sparc64/include/mm/vm.h /kernel/trunk/arch/sparc64/src/dummy.s /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/generic/src/cpu/cpu.c
|
644 |
6817 d 0 h |
jermar |
/kernel/trunk/arch/ |
Remove unnecessary files or files that are now part of the boot/ module. |
|
/kernel/trunk/arch/ia32/boot/grub.img.gz /kernel/trunk/arch/sparc64/boot/_link.ld /kernel/trunk/arch/sparc64/boot/boot.S
/kernel/trunk/arch/ia32/boot/Makefile /kernel/trunk/arch/sparc64/boot/Makefile
|
640 |
6817 d 14 h |
jermar |
/kernel/trunk/ |
sparc64 work.
CPU identification. |
|
/kernel/trunk/arch/sparc64/include/register.h /kernel/trunk/arch/sparc64/src/cpu /kernel/trunk/arch/sparc64/src/cpu/cpu.c
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/cpu.h /kernel/trunk/arch/sparc64/src/dummy.s /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/main/main.c
|
635 |
6818 d 14 h |
palkovsky |
/kernel/trunk/ |
Fixed kconsole resolution of similar commands.
Add commands to debugger to allow for simple profiling or
calling debug actions if needed. |
|
/kernel/trunk/arch/mips32/include/debugger.h /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/lib/func.c
|
634 |
6819 d 3 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Better way of trap table organization.
Kernel trap handlers now "stay" on addresses on wich they were linked. |
|
/kernel/trunk/arch/sparc64/include/trap/trap_table.h /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
|
633 |
6819 d 16 h |
palkovsky |
/kernel/trunk/arch/ |
Fixes of compilation of atomic. |
|
/kernel/trunk/arch/ia32/include/atomic.h
|
632 |
6819 d 16 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Add trap_install_handler().
Use trap_install_handler() to install register window clean, spill and fill handlers. |
|
/kernel/trunk/arch/sparc64/include/memstr.h /kernel/trunk/arch/sparc64/include/trap/regwin.h /kernel/trunk/arch/sparc64/include/trap/trap.h /kernel/trunk/arch/sparc64/include/trap/trap_table.h /kernel/trunk/arch/sparc64/src/trap/trap.c
|
631 |
6819 d 16 h |
palkovsky |
/kernel/trunk/ |
Fixed cpu halting in debug panic mode. |
|
/kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/generic/include/func.h /kernel/trunk/generic/src/console/console.c /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/proc/scheduler.c
|
630 |
6819 d 18 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Register window clean, spill and fill handlers. |
|
/kernel/trunk/arch/sparc64/include/trap /kernel/trunk/arch/sparc64/include/trap/regwin.h /kernel/trunk/arch/sparc64/include/trap/trap.h /kernel/trunk/arch/sparc64/include/trap/trap_table.h /kernel/trunk/arch/sparc64/src/trap /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/arch/sparc64/src/trap/trap_table.S
/kernel/trunk/arch/sparc64/include/trap.h /kernel/trunk/arch/sparc64/include/trap_table.h /kernel/trunk/arch/sparc64/src/trap.c /kernel/trunk/arch/sparc64/src/trap_table.S
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c
|
629 |
6819 d 18 h |
decky |
/kernel/trunk/ |
init task loading (yet buggy) |
|
/kernel/trunk/arch/ia32/boot/grub.img.gz /kernel/trunk/arch/ia32/src/boot/boot.S /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/mm/frame.c
|
628 |
6819 d 19 h |
decky |
/kernel/trunk/ |
ia32: floppy boot image uses GRUB |
|
/kernel/trunk/arch/ia32/boot/grub.img.gz
/kernel/trunk/arch/ia32/boot/boot.S /kernel/trunk/arch/ia32/boot/boot.ld
/kernel/trunk/arch/ia32/boot/Makefile /kernel/trunk/arch/ia32/src/boot/boot.S /kernel/trunk/generic/include/config.h /kernel/trunk/generic/src/main/main.c
|
627 |
6819 d 21 h |
jermar |
/kernel/trunk/ |
Fix ia64 and sparc64 to compile with new atomic_t.
Fix rwlock test #5 and semaphore test #1 to compile with new atomic_t.
sparc64 work.
TBA must be set before a function call when MMU is switched off. |
|
/kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/arch/ia64/include/atomic.h /kernel/trunk/arch/mips32/include/atomic.h /kernel/trunk/arch/sparc64/include/atomic.h /kernel/trunk/arch/sparc64/include/trap.h /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/trap.c /kernel/trunk/test/synch/rwlock5/test.c /kernel/trunk/test/synch/semaphore1/test.c
|
625 |
6819 d 22 h |
palkovsky |
/kernel/trunk/ |
We are now almost -Wall clean.
- redefined atomic_t
- deleted many, many unused variables
- some minor code cleanups found using compiler warning. |
|
/kernel/trunk/arch/amd64/include/asm.h /kernel/trunk/arch/amd64/src/cpu/cpu.c /kernel/trunk/arch/ia32/include/atomic.h /kernel/trunk/arch/ia32/src/fmath.c /kernel/trunk/arch/ia32/src/mm/frame.c /kernel/trunk/arch/ia32/src/smp/smp.c /kernel/trunk/arch/ia64/include/atomic.h /kernel/trunk/arch/mips32/include/atomic.h /kernel/trunk/arch/mips32/src/drivers/arc.c /kernel/trunk/arch/mips32/src/drivers/serial.c /kernel/trunk/arch/ppc32/include/atomic.h /kernel/trunk/arch/sparc64/include/atomic.h /kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/include/debug.h /kernel/trunk/generic/include/synch/spinlock.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/vm.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/generic/src/synch/spinlock.c /kernel/trunk/test/synch/rwlock4/test.c
|
623 |
6820 d 3 h |
jermar |
/kernel/trunk/ |
Add SPINLOCK_DECLARE and SPINLOCK_INITIALIZE macros.
SPINLOCK_DECLARE is to be used instead of direct spinlock_t declarations
in dynamically allocated structures on which spinlock_initialize() is called after
their creation.
SPINLOCK_INITIALIZE is to be used instead of direct spinlock_t declarations
of global spinlocks. It declares and initializes the spinlock.
Moreover, both macros are empty on UP so that -Wall warnings about unused structures
get supressed. |
|
/kernel/trunk/arch/ia32/src/drivers/ega.c /kernel/trunk/arch/ia32/src/drivers/i8042.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/arch/mips32/src/mm/asid.c /kernel/trunk/generic/include/console/chardev.h /kernel/trunk/generic/include/console/kconsole.h /kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/include/mm/vm.h /kernel/trunk/generic/include/proc/scheduler.h /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/include/synch/rwlock.h /kernel/trunk/generic/include/synch/spinlock.h /kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/include/time/timeout.h /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/interrupt/interrupt.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/heap.c /kernel/trunk/generic/src/mm/tlb.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/synch/rwlock.c /kernel/trunk/test/synch/rwlock4/test.c /kernel/trunk/test/synch/semaphore2/test.c /kernel/trunk/test/thread/thread1/test.c
|
622 |
6820 d 17 h |
palkovsky |
/kernel/trunk/ |
Better gcc CALLER implementation |
|
/kernel/trunk/arch/ia32/include/debug.h /kernel/trunk/arch/mips32/include/debug.h /kernel/trunk/generic/include/debug.h /kernel/trunk/generic/src/synch/spinlock.c
|
619 |
6821 d 12 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Functions for disabling/enabling MMU.
TLB initialization.
Identity mapping of first 4M for kernel.
Switch to kernel copy of trap table. |
|
/kernel/trunk/arch/sparc64/include/mm/mmu.h /kernel/trunk/arch/sparc64/include/trap.h /kernel/trunk/arch/sparc64/src/trap.c
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/mm/frame.h /kernel/trunk/arch/sparc64/include/mm/tlb.h /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c
|
618 |
6821 d 15 h |
jermar |
/kernel/trunk/arch/mips32/src/mm/ |
Unify mips32 and sparc64 tlb_invalidate_all() semantics: do not invalidate locked/wired TLB entries. |
|
/kernel/trunk/arch/mips32/src/mm/tlb.c
|
617 |
6821 d 15 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Support for TLB Demap operations.
Add tlb_invalidate(), tlb_invalidate_asid() and tlb_invalidate_page() (latter two are broken as they ignore asid). |
|
/kernel/trunk/arch/sparc64/include/mm/asid.h /kernel/trunk/arch/sparc64/include/mm/page.h /kernel/trunk/arch/sparc64/include/mm/tlb.h /kernel/trunk/arch/sparc64/include/mm/tte.h /kernel/trunk/arch/sparc64/src/mm/tlb.c
|
615 |
6822 d 2 h |
palkovsky |
/kernel/trunk/ |
Cleanups to make it compile with -Wall. Did not catch everything yet. |
|
/kernel/trunk/arch/ia32/src/smp/mps.c /kernel/trunk/arch/mips32/src/debugger.c /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/fmath.c /kernel/trunk/generic/include/func.h /kernel/trunk/generic/include/panic.h /kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/heap.c /kernel/trunk/generic/src/synch/waitq.c /kernel/trunk/generic/src/time/clock.c
|
614 |
6822 d 12 h |
palkovsky |
/kernel/trunk/ |
Added support for mips breakpoints.
We have a kind of kernel debugger :-)
Breakpoints on JMP/Branch instructions are not supported and
they are reported after the breakpoint is fired and exited as
a BranchDelay exception. If we found a way, how to detect these
instructions, we would be able to support them as 'one-time' breakpoints. |
|
/kernel/trunk/arch/mips32/include/debugger.h /kernel/trunk/arch/mips32/src/debugger.c
/kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/generic/src/console/kconsole.c
|
613 |
6822 d 14 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
More ITLB and DTLB controlling functions. |
|
/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/src/mm/tlb.c
|
612 |
6822 d 18 h |
jermar |
/kernel/trunk/arch/mips32/src/mm/ |
Weaken the assumption, that PageMask register contains the right mask everytime.
As a result, TLB exceptions will explicitly write this register when filling TLB entry.
Adjust tlb_print() on mips32 to print PageMask as well. |
|
/kernel/trunk/arch/mips32/src/mm/tlb.c
|
610 |
6822 d 20 h |
palkovsky |
/kernel/trunk/arch/mips32/ |
Cleanup of unnecessary things. |
|
/kernel/trunk/arch/mips32/include/cp0.h /kernel/trunk/arch/mips32/src/cpu/cpu.c /kernel/trunk/arch/mips32/src/drivers/arc.c /kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/arch/mips32/src/interrupt.c
|
609 |
6822 d 20 h |
palkovsky |
/kernel/trunk/ |
added support for breakpoints to mips32 |
|
/kernel/trunk/test/debug /kernel/trunk/test/debug/mips1 /kernel/trunk/test/debug/mips1/test.c
/kernel/trunk/arch/mips32/src/exception.c /kernel/trunk/generic/include/console/kconsole.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/kernel.config
|
607 |
6822 d 21 h |
palkovsky |
/kernel/trunk/ |
Fixed weird simics panic.
Run kconsole, if we panic. This currently works in gxemul,
simics. In mips we need to modify the simulator.
On ia32 we need a function, that would speak directly to the chip
and fetch the character using polling. |
|
/kernel/trunk/arch/mips32/src/drivers/msim.c /kernel/trunk/arch/mips32/src/drivers/serial.c /kernel/trunk/arch/mips32/src/panic.S /kernel/trunk/generic/include/console/chardev.h /kernel/trunk/generic/src/console/console.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/lib/func.c
|
606 |
6822 d 22 h |
palkovsky |
/kernel/trunk/ |
Small kconsole readline changes.
Some mips tweaks to allow for real keyboard support in indy. |
|
/kernel/trunk/arch/ia32/include/i8042.h /kernel/trunk/arch/ia32/src/drivers/i8042.c /kernel/trunk/arch/mips32/include/drivers/arc.h /kernel/trunk/arch/mips32/include/drivers/msim.h /kernel/trunk/arch/mips32/include/drivers/serial.h /kernel/trunk/arch/mips32/src/console.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/generic/src/console/kconsole.c
|
605 |
6823 d 2 h |
palkovsky |
/kernel/trunk/arch/mips32/src/drivers/ |
Allow for different ARC frame size and kernel frame size. |
|
/kernel/trunk/arch/mips32/src/drivers/arc.c
|
604 |
6823 d 3 h |
palkovsky |
/kernel/trunk/ |
Make it boot on SGI indy again. |
|
/kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/tools/config.py
|
602 |
6823 d 16 h |
palkovsky |
/kernel/trunk/ |
Symtab returns correct addresses even when symtab is befor bss.
Some tab completion optimization. |
|
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/_link.ld.in /kernel/trunk/arch/ia32/_link.ld.in /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/debug/symtab.c
|
601 |
6823 d 18 h |
palkovsky |
/kernel/trunk/ |
Added some readline functionality to kconsole.
Arrows editing, history, tab completion. |
|
/kernel/trunk/arch/ia32/include/i8042.h /kernel/trunk/arch/ia32/src/drivers/i8042.c /kernel/trunk/generic/include/console/console.h /kernel/trunk/generic/include/console/kconsole.h /kernel/trunk/generic/include/symtab.h /kernel/trunk/generic/src/console/console.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/lib/func.c
|
600 |
6823 d 23 h |
jermar |
/kernel/trunk/arch/mips32/ |
Different sizes of TLB on mips32.
R4000 has 48 entries, 4kc has only 16 entries. |
|
/kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/mips32/include/mm/tlb.h
|
599 |
6823 d 23 h |
jermar |
/kernel/trunk/arch/mips32/ |
Fixes for mips32 invalidation functions. |
|
/kernel/trunk/arch/mips32/include/mm/tlb.h /kernel/trunk/arch/mips32/src/mm/tlb.c
|
598 |
6824 d 0 h |
jermar |
/kernel/trunk/arch/mips32/src/mm/ |
TLB invalidation functions for mips32. Not deployed yet. Not tested. |
|
/kernel/trunk/arch/mips32/src/mm/tlb.c
|
597 |
6824 d 0 h |
jermar |
/kernel/trunk/ |
Finer grained TLB invalidate functions for ia32 and amd64. Not yet deployed. |
|
/kernel/trunk/generic/include/mm/tlb_cmd.h
/kernel/trunk/arch/amd64/include/asm.h /kernel/trunk/arch/ia32/include/asm.h /kernel/trunk/arch/ia32/src/mm/tlb.c /kernel/trunk/generic/include/mm/tlb.h
|