Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
4369 |
5583 d 7 h |
rimsky |
/branches/sparc/kernel/arch/sparc64/ |
Kernel stack and userspace window buffer pointers are stored in scratchpad registers instead of memory. |
|
/branches/sparc/kernel/arch/sparc64/include/sun4v/arch.h /branches/sparc/kernel/arch/sparc64/include/sun4v/cpu.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/regwin.h /branches/sparc/kernel/arch/sparc64/src/proc/sun4v/scheduler.c /branches/sparc/kernel/arch/sparc64/src/sun4v/start.S /branches/sparc/kernel/arch/sparc64/src/trap/sun4v/trap_table.S
|
3993 |
5652 d 3 h |
rimsky |
/branches/sparc/kernel/ |
Implemented preemptible trap handler for userspace (including syscalls - did not forget enabling interrupts for them) and the ralated stuff. Implemented handlers of instruction/data MMU miss/protection. Now some userspace tasks are run; there are, however, still some bugs causing unexpected data MMU misses. |
|
/branches/sparc/kernel/arch/sparc64/include/sun4u/asm.h /branches/sparc/kernel/arch/sparc64/include/sun4v/asm.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4u/regwin.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/regwin.h /branches/sparc/kernel/arch/sparc64/src/proc/sun4u /branches/sparc/kernel/arch/sparc64/src/proc/sun4u/scheduler.c /branches/sparc/kernel/arch/sparc64/src/proc/sun4v /branches/sparc/kernel/arch/sparc64/src/proc/sun4v/scheduler.c
/branches/sparc/kernel/arch/sparc64/src/proc/scheduler.c
/branches/sparc/kernel/arch/sparc64/Makefile.inc /branches/sparc/kernel/arch/sparc64/include/asm.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/tlb.h /branches/sparc/kernel/arch/sparc64/include/sun4v/cpu.h /branches/sparc/kernel/arch/sparc64/include/trap/regwin.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/src/mm/sun4v/tlb.c /branches/sparc/kernel/arch/sparc64/src/sun4u/start.S /branches/sparc/kernel/arch/sparc64/src/sun4v/asm.S /branches/sparc/kernel/arch/sparc64/src/sun4v/start.S /branches/sparc/kernel/arch/sparc64/src/trap/sun4v/trap_table.S /branches/sparc/kernel/generic/src/main/kinit.c /branches/sparc/kernel/generic/src/mm/as.c
|
3863 |
5674 d 3 h |
rimsky |
/branches/sparc/ |
Simics machine: modifications needed to run userspace (the next step will be to implement the trap handler for uspace); real machine: small fixes, after them the machine passes some parts of the initialization, but fails to determine CPU frequency (probably due to a different format of Machine Description). |
|
/branches/sparc/boot/arch/sparc64/loader/asm.S /branches/sparc/kernel/arch/sparc64/include/sun4v/regdef.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/src/drivers/niagara.c /branches/sparc/kernel/arch/sparc64/src/sun4v/asm.S /branches/sparc/kernel/arch/sparc64/src/trap/sun4v/trap_table.S
|
3862 |
5677 d 4 h |
rimsky |
/branches/sparc/kernel/ |
Changed the structure of header files, which have sun4u and sun4v versions. Implemented some sun4v TSB functions. |
|
/branches/sparc/kernel/arch/sparc64/include/mm/mmu.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/as.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/frame.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/page.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/tsb.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/as.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/frame.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/page.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/tsb.h /branches/sparc/kernel/arch/sparc64/include/mm/tlb.h /branches/sparc/kernel/arch/sparc64/include/mm/tte.h /branches/sparc/kernel/arch/sparc64/include/regdef.h /branches/sparc/kernel/arch/sparc64/include/trap/mmu.h /branches/sparc/kernel/arch/sparc64/src/mm/sun4u/tsb.c /branches/sparc/kernel/arch/sparc64/src/mm/sun4v/tsb.c
/branches/sparc/kernel/arch/sparc64/src/mm/tsb.c
/branches/sparc/kernel/arch/sparc64/Makefile.inc /branches/sparc/kernel/arch/sparc64/include/arch.h /branches/sparc/kernel/arch/sparc64/include/cpu.h /branches/sparc/kernel/arch/sparc64/include/cpu_family.h /branches/sparc/kernel/arch/sparc64/include/interrupt.h /branches/sparc/kernel/arch/sparc64/include/mm/as.h /branches/sparc/kernel/arch/sparc64/include/mm/frame.h /branches/sparc/kernel/arch/sparc64/include/mm/page.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/tlb.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/tlb.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/tte.h /branches/sparc/kernel/arch/sparc64/include/mm/tsb.h /branches/sparc/kernel/arch/sparc64/include/register.h /branches/sparc/kernel/arch/sparc64/include/sun4u/cpu.h /branches/sparc/kernel/arch/sparc64/include/sun4v/cpu.h /branches/sparc/kernel/arch/sparc64/include/sun4v/regdef.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4u/mmu.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/src/console.c /branches/sparc/kernel/arch/sparc64/src/cpu/sun4u/cpu.c /branches/sparc/kernel/arch/sparc64/src/cpu/sun4v/cpu.c /branches/sparc/kernel/arch/sparc64/src/drivers/sgcn.c /branches/sparc/kernel/arch/sparc64/src/mm/page.c /branches/sparc/kernel/arch/sparc64/src/mm/sun4u/as.c /branches/sparc/kernel/arch/sparc64/src/mm/sun4u/tlb.c /branches/sparc/kernel/arch/sparc64/src/mm/sun4v/as.c /branches/sparc/kernel/arch/sparc64/src/mm/sun4v/tlb.c /branches/sparc/kernel/arch/sparc64/src/smp/sun4v/smp.c /branches/sparc/kernel/arch/sparc64/src/trap/exception.c /branches/sparc/kernel/arch/sparc64/src/trap/trap.c /branches/sparc/kernel/generic/src/console/cmd.c /branches/sparc/kernel/generic/src/console/console.c /branches/sparc/kernel/generic/src/cpu/cpu.c /branches/sparc/kernel/generic/src/ddi/ddi.c /branches/sparc/kernel/generic/src/ddi/irq.c /branches/sparc/kernel/generic/src/interrupt/interrupt.c /branches/sparc/kernel/generic/src/ipc/ipc.c /branches/sparc/kernel/generic/src/ipc/ipcrsc.c /branches/sparc/kernel/generic/src/ipc/irq.c /branches/sparc/kernel/generic/src/ipc/sysipc.c /branches/sparc/kernel/generic/src/main/kinit.c /branches/sparc/kernel/generic/src/main/uinit.c /branches/sparc/kernel/generic/src/mm/backend_anon.c /branches/sparc/kernel/generic/src/mm/backend_elf.c /branches/sparc/kernel/generic/src/mm/backend_phys.c /branches/sparc/kernel/generic/src/mm/slab.c /branches/sparc/kernel/generic/src/mm/tlb.c /branches/sparc/kernel/generic/src/proc/program.c /branches/sparc/kernel/generic/src/proc/task.c /branches/sparc/kernel/generic/src/security/cap.c /branches/sparc/kernel/generic/src/synch/futex.c /branches/sparc/kernel/generic/src/synch/spinlock.c /branches/sparc/kernel/generic/src/syscall/copy.c /branches/sparc/kernel/generic/src/syscall/syscall.c /branches/sparc/kernel/generic/src/time/clock.c /branches/sparc/kernel/test/mm/falloc2.c /branches/sparc/kernel/test/mm/slab1.c /branches/sparc/kernel/test/mm/slab2.c /branches/sparc/kernel/test/synch/rwlock2.c /branches/sparc/kernel/test/synch/rwlock3.c /branches/sparc/kernel/test/synch/rwlock4.c /branches/sparc/kernel/test/synch/rwlock5.c /branches/sparc/kernel/test/synch/semaphore1.c /branches/sparc/kernel/test/synch/semaphore2.c /branches/sparc/kernel/test/thread/thread1.c
|
3835 |
5682 d 4 h |
rimsky |
/branches/sparc/kernel/arch/sparc64/ |
Niagara: Implemented (and debugged) installing identity mapping for kernel. Now all the kernel tests pass on Simics. |
|
/branches/sparc/kernel/arch/sparc64/include/sun4v/arch.h /branches/sparc/kernel/arch/sparc64/src/trap/sun4v/mmu.S
/branches/sparc/kernel/arch/sparc64/src/trap/mmu.S
/branches/sparc/kernel/arch/sparc64/Makefile.inc /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/tlb.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/src/mm/sun4v/tlb.c /branches/sparc/kernel/arch/sparc64/src/sun4v/start.S /branches/sparc/kernel/arch/sparc64/src/trap/sun4v/trap_table.S
|
3770 |
5710 d 5 h |
rimsky |
/branches/sparc/ |
Working on Niagara port - TLB initialization, MMU fault status area initialization, hypercall enhancement, modified tick.c so that the (hyperprivileged) TICK register does not have to be accessed. Now the initialization phase proceeds, but some parts of it are omitted for now (e.g. CPU initialization). |
|
/branches/sparc/boot/arch/sparc64/loader/main.c /branches/sparc/kernel/arch/sparc64/Makefile.inc /branches/sparc/kernel/arch/sparc64/include/cpu.h /branches/sparc/kernel/arch/sparc64/include/cpu_family.h /branches/sparc/kernel/arch/sparc64/include/drivers/tick.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/tlb.h /branches/sparc/kernel/arch/sparc64/include/sun4v/hypercall.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4u/mmu.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/src/console.c /branches/sparc/kernel/arch/sparc64/src/drivers/tick.c /branches/sparc/kernel/arch/sparc64/src/mm/as.c /branches/sparc/kernel/arch/sparc64/src/mm/frame.c /branches/sparc/kernel/arch/sparc64/src/mm/page.c /branches/sparc/kernel/arch/sparc64/src/mm/tsb.c /branches/sparc/kernel/arch/sparc64/src/sun4u/start.S /branches/sparc/kernel/arch/sparc64/src/sun4v/sparc64.c /branches/sparc/kernel/arch/sparc64/src/sun4v/start.S /branches/sparc/kernel/arch/sparc64/src/trap/exception.c /branches/sparc/kernel/generic/src/console/cmd.c /branches/sparc/kernel/generic/src/main/main.c /branches/sparc/kernel/generic/src/mm/tlb.c
|
3748 |
5717 d 6 h |
rimsky |
/branches/sparc/kernel/arch/sparc64/ |
Be careful to preserve the output registers when processing the fast data access MMU miss. |
|
/branches/sparc/kernel/arch/sparc64/include/trap/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/src/sun4v/sparc64.c
|
3743 |
5717 d 13 h |
rimsky |
/branches/sparc/ |
Started to implement support for sun4v. Bootloader adapted to autodetect the architecture (sun4u, sun4v). Some generic sparc64 kernel files split into sun4u and sun4v versions (but the sun4u is still the default in many cases - in order to keep the code compilable). Implemented taking over the MMU. Implemented routines for performing the hypervisor API calls. Implemented a trivial standard output driver. HelenOS banner can now be printed from the kernel on Niagara. |
|
/branches/sparc/kernel/arch/sparc64/include/drivers/niagara.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/mmu.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/tlb.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4u/tte.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/include/mm/sun4v/tte.h /branches/sparc/kernel/arch/sparc64/include/sun4u /branches/sparc/kernel/arch/sparc64/include/sun4u/arch.h /branches/sparc/kernel/arch/sparc64/include/sun4u/regdef.h /branches/sparc/kernel/arch/sparc64/include/sun4v /branches/sparc/kernel/arch/sparc64/include/sun4v/hypercall.h /branches/sparc/kernel/arch/sparc64/include/sun4v/regdef.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4u /branches/sparc/kernel/arch/sparc64/include/trap/sun4u/mmu.h /branches/sparc/kernel/arch/sparc64/include/trap/sun4v /branches/sparc/kernel/arch/sparc64/include/trap/sun4v/mmu.h /branches/sparc/kernel/arch/sparc64/src/drivers/niagara.c /branches/sparc/kernel/arch/sparc64/src/sun4u /branches/sparc/kernel/arch/sparc64/src/sun4u/asm.S /branches/sparc/kernel/arch/sparc64/src/sun4u/sparc64.c /branches/sparc/kernel/arch/sparc64/src/sun4u/start.S /branches/sparc/kernel/arch/sparc64/src/sun4v /branches/sparc/kernel/arch/sparc64/src/sun4v/asm.S /branches/sparc/kernel/arch/sparc64/src/sun4v/sparc64.c /branches/sparc/kernel/arch/sparc64/src/sun4v/start.S /branches/sparc/kernel/arch/sparc64/src/trap/sun4u /branches/sparc/kernel/arch/sparc64/src/trap/sun4u/trap_table.S /branches/sparc/kernel/arch/sparc64/src/trap/sun4v /branches/sparc/kernel/arch/sparc64/src/trap/sun4v/trap_table.S
/branches/sparc/kernel/arch/sparc64/include/mm/mmu.h /branches/sparc/kernel/arch/sparc64/include/mm/tte.h /branches/sparc/kernel/arch/sparc64/include/regdef.h /branches/sparc/kernel/arch/sparc64/include/trap/mmu.h /branches/sparc/kernel/arch/sparc64/src/sparc64.c /branches/sparc/kernel/arch/sparc64/src/start.S /branches/sparc/kernel/arch/sparc64/src/trap/trap_table.S
/branches/sparc/boot/arch/sparc64/loader/main.c /branches/sparc/kernel/arch/sparc64/Makefile.inc /branches/sparc/kernel/arch/sparc64/include/arch.h /branches/sparc/kernel/arch/sparc64/include/cpu.h /branches/sparc/kernel/arch/sparc64/include/interrupt.h /branches/sparc/kernel/arch/sparc64/include/mm/as.h /branches/sparc/kernel/arch/sparc64/include/mm/tlb.h /branches/sparc/kernel/arch/sparc64/include/mm/tsb.h /branches/sparc/kernel/arch/sparc64/include/register.h /branches/sparc/kernel/arch/sparc64/src/asm.S /branches/sparc/kernel/arch/sparc64/src/mm/as.c /branches/sparc/kernel/arch/sparc64/src/mm/cache.S /branches/sparc/kernel/arch/sparc64/src/mm/page.c /branches/sparc/kernel/arch/sparc64/src/mm/tlb.c /branches/sparc/kernel/arch/sparc64/src/trap/exception.c /branches/sparc/kernel/arch/sparc64/src/trap/mmu.S /branches/sparc/kernel/arch/sparc64/src/trap/trap.c /branches/sparc/kernel/kernel.config
|