Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1887 |
6622 d 9 h |
jermar |
/trunk/kernel/arch/sparc64/ |
When creating TLB mapping for the sparc64 kernel, enable CV (cacheable virtually) bit.
Also install locked mappings only in context 0. |
|
/trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/src/start.S
|
1881 |
6624 d 9 h |
jermar |
/trunk/ |
sparc64 work:
- find a CPU node and read its clock_frequency attribute
- implement asm_delay_loop()
- set TICK_COMPARE register according to processor frequency
- small improvements at random places
OpenFirmware work:
- two new functions for walking the device tree
Generic boot loader work:
- added basic string functions
Usual pile of indentation and formatting fixes. |
|
/trunk/boot/generic/string.c /trunk/boot/generic/string.h
/trunk/boot/arch/sparc64/loader/Makefile /trunk/boot/arch/sparc64/loader/main.c /trunk/boot/arch/sparc64/loader/main.h /trunk/boot/arch/sparc64/loader/ofwarch.c /trunk/boot/arch/sparc64/loader/ofwarch.h /trunk/boot/genarch/ofw.c /trunk/boot/genarch/ofw.h /trunk/boot/generic/gentypes.h /trunk/kernel/arch/ia64/src/drivers/it.c /trunk/kernel/arch/mips32/include/asm.h /trunk/kernel/arch/mips32/src/interrupt.c /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/boot/boot.h /trunk/kernel/arch/sparc64/include/cpu.h /trunk/kernel/arch/sparc64/include/drivers/tick.h /trunk/kernel/arch/sparc64/src/cpu/cpu.c /trunk/kernel/arch/sparc64/src/drivers/tick.c /trunk/kernel/arch/sparc64/src/dummy.s /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/generic/include/arch.h /trunk/kernel/generic/include/cpu.h /trunk/kernel/generic/include/time/clock.h /trunk/kernel/generic/include/time/delay.h /trunk/kernel/generic/include/time/timeout.h /trunk/kernel/generic/include/typedefs.h /trunk/kernel/generic/src/cpu/cpu.c
|
1880 |
6626 d 1 h |
jermar |
/trunk/ |
Small improvements here and there. |
|
/trunk/kernel/arch/sparc64/_link.ld.in /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/trap/exception.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/arch/sparc64/src/trap/exception.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/genarch/src/kbd/ns16550.c /trunk/kernel/generic/src/printf/printf_core.c /trunk/kernel/generic/src/proc/task.c /trunk/kernel/generic/src/sysinfo/sysinfo.c /trunk/uspace/ns/ns.c
|
1868 |
6631 d 7 h |
jermar |
/trunk/ |
sparc64 work.
- the syscall wrapper needs to use the "memory"
clobber specifier to prevent over-optimization.
- on sparc64, the user address space spans the whole
64-bit space and therefore the macro
USER_ADDRESS_SPACE_SIZE_ARCH, as it was defined,
overflows to 0
- stop using USER_ADDRESS_SPACE_SIZE_ARCH and define
MAX_HEAP_SIZE instead
- in our situation when kernel and user address spaces
are separate, the G (global) bit cannot be used
(there is no point in it anymore)
- add the DEBUG() macro to stdio.h; DEBUG() uses
SYS_IO and is a good debugging tool for getting
early userspace to work |
|
/trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/generic/include/mm/as.h /trunk/uspace/libc/arch/sparc64/include/syscall.h /trunk/uspace/libc/generic/as.c /trunk/uspace/libc/generic/psthread.c /trunk/uspace/libc/include/as.h /trunk/uspace/libc/include/stdio.h
|
1864 |
6632 d 23 h |
jermar |
/trunk/ |
sparc64 update.
- Prototype userspace layer implementation that
at least relates to sparc64 and compiles cleanly.
- Fixes for kernel's preemptible_handler and code
related to running userspace.
- Enable userspace. Several dozen instructions
are now run in userspace! We are pretty near
the userspace milestone for sparc64. |
|
/trunk/uspace/libc/arch/sparc64/include/stack.h
/trunk/boot/arch/sparc64/loader/Makefile /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/mm/as.h /trunk/kernel/arch/sparc64/include/mm/tlb.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/context.S /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/src/proc/task.c /trunk/uspace/libc/arch/sparc64/_link.ld.in /trunk/uspace/libc/arch/sparc64/include/atomic.h /trunk/uspace/libc/arch/sparc64/include/config.h /trunk/uspace/libc/arch/sparc64/include/context_offset.h /trunk/uspace/libc/arch/sparc64/include/endian.h /trunk/uspace/libc/arch/sparc64/include/limits.h /trunk/uspace/libc/arch/sparc64/include/psthread.h /trunk/uspace/libc/arch/sparc64/include/stackarg.h /trunk/uspace/libc/arch/sparc64/include/syscall.h /trunk/uspace/libc/arch/sparc64/include/thread.h /trunk/uspace/libc/arch/sparc64/include/types.h /trunk/uspace/libc/arch/sparc64/src/entry.s /trunk/uspace/libc/arch/sparc64/src/psthread.S /trunk/uspace/libc/arch/sparc64/src/thread.c /trunk/uspace/libc/arch/sparc64/src/thread_entry.s
|
1860 |
6636 d 3 h |
jermar |
/trunk/kernel/ |
A lot of untested sparc64 stuff:
- Write ASID to hardware when a thread is about to run in userspace.
- Add userspace() and switch_to_userspace() functions.
- Handle special cases when the userspace spill/fill handler causes MMU trap.
- Resolve some TODOs in the existing sparc64 code.
- sparc64 has now C99 compliant header guards.
- Formatting and indentation fixes. |
|
/trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/arg.h /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/atomic.h /trunk/kernel/arch/sparc64/include/barrier.h /trunk/kernel/arch/sparc64/include/byteorder.h /trunk/kernel/arch/sparc64/include/console.h /trunk/kernel/arch/sparc64/include/context.h /trunk/kernel/arch/sparc64/include/cpu.h /trunk/kernel/arch/sparc64/include/debug.h /trunk/kernel/arch/sparc64/include/drivers/tick.h /trunk/kernel/arch/sparc64/include/elf.h /trunk/kernel/arch/sparc64/include/faddr.h /trunk/kernel/arch/sparc64/include/fpu_context.h /trunk/kernel/arch/sparc64/include/interrupt.h /trunk/kernel/arch/sparc64/include/memstr.h /trunk/kernel/arch/sparc64/include/mm/as.h /trunk/kernel/arch/sparc64/include/mm/frame.h /trunk/kernel/arch/sparc64/include/mm/memory_init.h /trunk/kernel/arch/sparc64/include/mm/mmu.h /trunk/kernel/arch/sparc64/include/mm/tlb.h /trunk/kernel/arch/sparc64/include/mm/tte.h /trunk/kernel/arch/sparc64/include/proc/task.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/include/trap/exception.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/include/trap/regwin.h /trunk/kernel/arch/sparc64/include/trap/trap.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/include/types.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/ddi/ddi.c /trunk/kernel/arch/sparc64/src/dummy.s /trunk/kernel/arch/sparc64/src/mm/as.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/include/align.h
|
1852 |
6641 d 4 h |
jermar |
/trunk/kernel/ |
sparc64 work.
Bunch of changes in preparation for sparc64 mm and userspace support.
Fix alignment of hardcoded_* variables in linker script. |
|
/trunk/kernel/arch/sparc64/_link.ld.in /trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/interrupt.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/include/trap/regwin.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/test/synch/rwlock4/test.c /trunk/kernel/test/thread/thread1/test.c
|
1823 |
6666 d 6 h |
jermar |
/trunk/kernel/arch/sparc64/ |
sparc64 work.
Dump take_over_tlb_and_tt() and add its assembly language replacement. |
|
/trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/boot/boot.h /trunk/kernel/arch/sparc64/include/mm/mmu.h /trunk/kernel/arch/sparc64/include/mm/tlb.h /trunk/kernel/arch/sparc64/include/mm/tte.h /trunk/kernel/arch/sparc64/include/trap/trap.h /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S
|
1822 |
6666 d 11 h |
jermar |
/trunk/ |
sparc64 work.
1. Formatting fixes.
2. When writing to DMMU ASI's, simple membar() can be used in place of flush().
3. Substantial changes in the way the TLB is taken over.
4. Remove unneeded functions.
This is the first revision that also runs on a real world Ultra 5 with UltraSPARC IIi
processor.
Note that 3. needs further work as the current implementation depends on the fact
that the compiler will use registers for local variables in take_over_tlb_and_tt().
Rewrite of that function into assembly is to follow. |
|
/trunk/boot/arch/sparc64/loader/main.c /trunk/kernel/arch/sparc64/include/barrier.h /trunk/kernel/arch/sparc64/include/mm/mmu.h /trunk/kernel/arch/sparc64/include/mm/page.h /trunk/kernel/arch/sparc64/include/mm/tlb.h /trunk/kernel/arch/sparc64/include/mm/tte.h /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/generic/src/syscall/copy.c
|
1792 |
6685 d 0 h |
jermar |
/trunk/ |
Move functionality of tlb_arch_init() to take_over_tlb_and_tt().
Call take_over_tlb_and_tt() very early after the kernel starts
executing. |
|
/trunk/boot/arch/sparc64/loader/boot.S /trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/mm/asid.h /trunk/kernel/arch/sparc64/include/trap/trap.h /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S
|
1790 |
6685 d 5 h |
jermar |
/trunk/ |
Remove OpenFirmware calls from kernel/ entirely.
Switch the sparc64 port to use bootinfo.
Copy memcpy from boot/ to sparc64 kernel/ and
adjust it for memcpy_from/to_uspace. |
|
/trunk/kernel/genarch/include/ofw /trunk/kernel/genarch/src/ofw
/trunk/boot/arch/sparc64/loader/asm.S /trunk/boot/arch/sparc64/loader/main.c /trunk/boot/arch/sparc64/loader/main.h /trunk/boot/genarch/ofw.c /trunk/boot/genarch/ofw.h /trunk/kernel/arch/ppc32/src/ppc32.c /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/_link.ld.in /trunk/kernel/arch/sparc64/include/boot/boot.h /trunk/kernel/arch/sparc64/include/drivers/fb.h /trunk/kernel/arch/sparc64/include/drivers/i8042.h /trunk/kernel/arch/sparc64/include/drivers/tick.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/i8042.c /trunk/kernel/arch/sparc64/src/mm/frame.c /trunk/kernel/arch/sparc64/src/mm/memory_init.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/src/fb/fb.c /trunk/kernel/generic/src/mm/frame.c
|
1789 |
6685 d 7 h |
jermar |
/trunk/ |
Fix ofw_memmap() in boot infrastructure.
The cell size is 32-bit and not equal sizeof(ofw_arg_t).
Define architecture dependant #address-cells and #size-cells for cases
the respective properties are missing in the OpenFirmware device tree.
The algorithm now works both for ppc32 and sparc64.
Add memmap_t, screen_t and keyboard_t to sparc64 bootinfo structure.
Be more verbose during sparc64 boot.
Move ALIGN_UP to generic part of boot/.
Change header guards in several places so that they don't contain double underscore. |
|
/trunk/boot/arch/ppc32/loader/ofwarch.c /trunk/boot/arch/ppc32/loader/ofwarch.h /trunk/boot/arch/ppc64/loader/ofwarch.c /trunk/boot/arch/ppc64/loader/ofwarch.h /trunk/boot/arch/sparc64/loader/ofwarch.c /trunk/boot/arch/sparc64/loader/ofwarch.h /trunk/boot/generic/align.h /trunk/kernel/arch/sparc64/include/regdef.h
/trunk/boot/arch/ppc32/loader/ofw.c /trunk/boot/arch/ppc64/loader/ofw.c /trunk/boot/arch/sparc64/loader/ofw.c
/trunk/boot/arch/ppc32/loader/Makefile /trunk/boot/arch/ppc32/loader/asm.h /trunk/boot/arch/ppc32/loader/boot.S /trunk/boot/arch/ppc32/loader/main.c /trunk/boot/arch/ppc32/loader/main.h /trunk/boot/arch/ppc32/loader/types.h /trunk/boot/arch/ppc64/loader/Makefile /trunk/boot/arch/ppc64/loader/boot.S /trunk/boot/arch/ppc64/loader/main.c /trunk/boot/arch/ppc64/loader/main.h /trunk/boot/arch/ppc64/loader/types.h /trunk/boot/arch/sparc64/loader/Makefile /trunk/boot/arch/sparc64/loader/asm.h /trunk/boot/arch/sparc64/loader/boot.S /trunk/boot/arch/sparc64/loader/main.c /trunk/boot/arch/sparc64/loader/main.h /trunk/boot/arch/sparc64/loader/types.h /trunk/boot/genarch/ofw.c /trunk/boot/genarch/ofw.h /trunk/boot/generic/gentypes.h /trunk/boot/generic/printf.h /trunk/kernel/arch/sparc64/include/register.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/start.S
|
1787 |
6687 d 4 h |
decky |
/ |
move kernel/trunk, uspace/trunk and boot/trunk to trunk/kernel, trunk/uspace and trunk/boot |
|
/trunk /trunk/boot /trunk/kernel /trunk/uspace
/boot/trunk /kernel/trunk /uspace/trunk
|
1784 |
6688 d 1 h |
jermar |
/kernel/trunk/ |
Sync OpenFirmware functionality with boot.
Random cleanup. |
|
/kernel/trunk/arch/sparc64/include/asm.h /kernel/trunk/arch/sparc64/include/atomic.h /kernel/trunk/arch/sparc64/include/barrier.h /kernel/trunk/arch/sparc64/include/console.h /kernel/trunk/arch/sparc64/include/drivers/fb.h /kernel/trunk/arch/sparc64/include/drivers/i8042.h /kernel/trunk/arch/sparc64/include/elf.h /kernel/trunk/arch/sparc64/include/register.h /kernel/trunk/arch/sparc64/include/stack.h /kernel/trunk/arch/sparc64/include/trap/interrupt.h /kernel/trunk/arch/sparc64/src/asm.S /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/drivers/i8042.c /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/arch/sparc64/src/mm/memory_init.c /kernel/trunk/arch/sparc64/src/proc/scheduler.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/start.S /kernel/trunk/genarch/include/ofw/memory_init.h /kernel/trunk/genarch/include/ofw/ofw.h /kernel/trunk/genarch/src/ofw/memory_init.c /kernel/trunk/genarch/src/ofw/ofw.c
|
1777 |
6694 d 7 h |
jermar |
/kernel/trunk/ |
Make sparc64 kernel assume it is loaded by our loader. |
|
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/boot/boot.h /kernel/trunk/arch/sparc64/src/start.S /kernel/trunk/genarch/src/ofw/ofw.c
|
895 |
6821 d 2 h |
jermar |
/kernel/trunk/ |
sparc64 work.
Very raw and fragile preliminary standalone keyboard support - polling mode only.
Because of a workaround in Simics, the scan codes are the same as on ia32. |
|
/kernel/trunk/arch/amd64/include/drivers/i8042.h /kernel/trunk/arch/sparc64/include/drivers/i8042.h
/kernel/trunk/arch/amd64/include/i8042.h /kernel/trunk/arch/sparc64/include/drivers/keyboard.h
/kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/console.h /kernel/trunk/arch/sparc64/include/interrupt.h /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/sparc64.c /kernel/trunk/arch/sparc64/src/start.S /kernel/trunk/genarch/include/i8042/i8042.h /kernel/trunk/genarch/src/i8042/i8042.c
|
867 |
6826 d 7 h |
jermar |
/kernel/trunk/ |
Move OFW functionality of ppc32 memory_init to genarch so that the code can also be used by sparc64.
sparc64 is now close to broken as it lacks functionality to provide identity mapping for the whole phyisical memory. |
|
/kernel/trunk/genarch/include/ofw/memory_init.h /kernel/trunk/genarch/src/ofw/memory_init.c
/kernel/trunk/arch/ppc32/include/mm/memory_init.h /kernel/trunk/arch/ppc32/src/mm/frame.c /kernel/trunk/arch/ppc32/src/mm/memory_init.c /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/include/mm/memory_init.h /kernel/trunk/arch/sparc64/include/trap/mmu.h /kernel/trunk/arch/sparc64/src/mm/frame.c /kernel/trunk/arch/sparc64/src/start.S /kernel/trunk/arch/sparc64/src/trap/trap.c /kernel/trunk/genarch/Makefile.inc
|
847 |
6831 d 4 h |
jermar |
/kernel/trunk/arch/sparc64/ |
Improve comments in start.S. |
|
/kernel/trunk/arch/sparc64/include/boot/boot.h /kernel/trunk/arch/sparc64/src/start.S
|
846 |
6831 d 6 h |
jermar |
/kernel/trunk/arch/sparc64/ |
sparc64 work.
Relocate kernel to 4M. |
|
/kernel/trunk/arch/sparc64/include/boot /kernel/trunk/arch/sparc64/include/boot/boot.h
/kernel/trunk/arch/sparc64/_link.ld.in /kernel/trunk/arch/sparc64/src/mm/tlb.c /kernel/trunk/arch/sparc64/src/start.S
|
534 |
6906 d 3 h |
jermar |
/ |
Rename HelenOS/SPARTAN to HelenOS/kernel again. |
|
/kernel
/SPARTAN
|