Subversion Repositories HelenOS

Rev

Go to most recent revision | Hide changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
1823 6639 d 5 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 6639 d 10 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
1821 6641 d 5 h decky /trunk/kernel/arch/xen32/ xen32 cleanup  
/trunk/kernel/arch/xen32/include/asm.h
/trunk/kernel/arch/xen32/include/boot/boot.h
/trunk/kernel/arch/xen32/include/mm/frame.h
/trunk/kernel/arch/xen32/include/mm/page.h
/trunk/kernel/arch/xen32/src/boot/boot.S
/trunk/kernel/arch/xen32/src/mm/frame.c
/trunk/kernel/arch/xen32/src/mm/memory_init.c
/trunk/kernel/arch/xen32/src/mm/page.c
/trunk/kernel/arch/xen32/src/mm/tlb.c
1820 6642 d 22 h decky /trunk/kernel/generic/ initial security context support  
/trunk/kernel/generic/include/arch.h
/trunk/kernel/generic/include/proc/scheduler.h
/trunk/kernel/generic/include/proc/task.h
/trunk/kernel/generic/include/proc/thread.h
/trunk/kernel/generic/include/proc/uarg.h
/trunk/kernel/generic/include/typedefs.h
/trunk/kernel/generic/src/proc/task.c
/trunk/kernel/generic/src/proc/the.c
/trunk/kernel/generic/src/proc/thread.c
1819 6642 d 22 h decky /trunk/kernel/generic/include/ formatting changes  
/trunk/kernel/generic/include/align.h
/trunk/kernel/generic/include/arch.h
/trunk/kernel/generic/include/atomic.h
/trunk/kernel/generic/include/bitops.h
/trunk/kernel/generic/include/byteorder.h
/trunk/kernel/generic/include/context.h
/trunk/kernel/generic/include/elf.h
/trunk/kernel/generic/include/errno.h
/trunk/kernel/generic/include/fpu_context.h
/trunk/kernel/generic/include/func.h
/trunk/kernel/generic/include/interrupt.h
/trunk/kernel/generic/include/memstr.h
/trunk/kernel/generic/include/panic.h
/trunk/kernel/generic/include/preemption.h
/trunk/kernel/generic/include/print.h
/trunk/kernel/generic/include/putchar.h
/trunk/kernel/generic/include/sort.h
/trunk/kernel/generic/include/stackarg.h
/trunk/kernel/generic/include/stdarg.h
/trunk/kernel/generic/include/symtab.h
/trunk/kernel/generic/include/syscall/copy.h
/trunk/kernel/generic/include/syscall/sysarg64.h
/trunk/kernel/generic/include/syscall/syscall.h
/trunk/kernel/generic/include/sysinfo/sysinfo.h
/trunk/kernel/generic/include/test.h
/trunk/kernel/generic/include/typedefs.h
/trunk/kernel/generic/include/userspace.h
1818 6646 d 0 h decky /trunk/kernel/ make burst updates  
/trunk/kernel/arch/xen32/Makefile.inc
/trunk/kernel/arch/xen32/src/mm/frame.c
/trunk/kernel/kernel.config
1817 6646 d 21 h decky /trunk/kernel/arch/ xen32 work: create identity mapping for the main memory zone,
make several dummy modifications to get to the banner
 
/trunk/kernel/arch/ia32/include/types.h
/trunk/kernel/arch/xen32/include/asm.h
/trunk/kernel/arch/xen32/include/boot/boot.h
/trunk/kernel/arch/xen32/include/hypercall.h
/trunk/kernel/arch/xen32/src/mm/frame.c
/trunk/kernel/arch/xen32/src/mm/page.c
1816 6647 d 5 h decky /trunk/kernel/ xen memory initialization  
/trunk/kernel/arch/xen32/include/drivers
/trunk/kernel/arch/xen32/include/drivers/xconsole.h
/trunk/kernel/arch/xen32/src/drivers
/trunk/kernel/arch/xen32/src/drivers/xconsole.c
/trunk/kernel/arch/xen32/Makefile.inc
/trunk/kernel/arch/xen32/_link.ld.in
/trunk/kernel/arch/xen32/include/hypercall.h
/trunk/kernel/arch/xen32/src/boot/boot.S
/trunk/kernel/arch/xen32/src/mm/frame.c
/trunk/kernel/arch/xen32/src/mm/page.c
/trunk/kernel/arch/xen32/src/pm.c
/trunk/kernel/arch/xen32/src/smp/smp.c
/trunk/kernel/arch/xen32/src/xen32.c
/trunk/kernel/kernel.config
1815 6647 d 7 h decky /trunk/kernel/arch/xen32/src/ fork drivers  
/trunk/kernel/arch/xen32/src/drivers
1814 6647 d 7 h decky /trunk/kernel/arch/xen32/include/ fork drivers  
/trunk/kernel/arch/xen32/include/drivers
1813 6647 d 7 h decky /trunk/kernel/arch/xen32/ xen32 hypervisor interface  
/trunk/kernel/arch/xen32/include/hypercall.h
/trunk/kernel/arch/xen32/include/boot/boot.h
/trunk/kernel/arch/xen32/src/boot/boot.S
/trunk/kernel/arch/xen32/src/mm/memory_init.c
/trunk/kernel/arch/xen32/src/xen32.c
1812 6647 d 7 h decky /trunk/kernel/ move macro and cleanup  
/trunk/kernel/arch/mips32/src/mips32.c
/trunk/kernel/generic/include/debug.h
/trunk/kernel/generic/include/macros.h
1811 6647 d 9 h decky /trunk/kernel/arch/ unify bootstrapping  
/trunk/kernel/arch/amd64/include/boot/boot.h
/trunk/kernel/arch/amd64/include/pm.h
/trunk/kernel/arch/ia32/include/pm.h
/trunk/kernel/arch/ia32/src/boot/boot.S
1810 6653 d 22 h decky /trunk/kernel/arch/xen32/ remove obsolete stuff  
/trunk/kernel/arch/xen32/src/xen32.c
/trunk/kernel/arch/xen32/src/ia32.c
/trunk/kernel/arch/xen32/Makefile.inc
/trunk/kernel/arch/xen32/_link.ld.in
/trunk/kernel/arch/xen32/include/boot/boot.h
/trunk/kernel/arch/xen32/src/boot/boot.S
1809 6654 d 0 h decky /trunk/kernel/arch/xen32/ update xen32 support (most of the code is still dummy)  
/trunk/kernel/arch/xen32/include/mm
/trunk/kernel/arch/xen32/include/mm/as.h
/trunk/kernel/arch/xen32/include/mm/asid.h
/trunk/kernel/arch/xen32/include/mm/frame.h
/trunk/kernel/arch/xen32/include/mm/memory_init.h
/trunk/kernel/arch/xen32/include/mm/page.h
/trunk/kernel/arch/xen32/include/mm/tlb.h
/trunk/kernel/arch/xen32/src/mm
/trunk/kernel/arch/xen32/src/mm/as.c
/trunk/kernel/arch/xen32/src/mm/frame.c
/trunk/kernel/arch/xen32/src/mm/memory_init.c
/trunk/kernel/arch/xen32/src/mm/page.c
/trunk/kernel/arch/xen32/src/mm/tlb.c
/trunk/kernel/arch/xen32/src/smp/apic.c
/trunk/kernel/arch/xen32/src/smp/ipi.c
/trunk/kernel/arch/xen32/src/smp/mps.c
/trunk/kernel/arch/xen32/src/smp/smp.c
/trunk/kernel/arch/xen32/Makefile.inc
/trunk/kernel/arch/xen32/_link.ld.in
/trunk/kernel/arch/xen32/src/boot/boot.S
1808 6654 d 0 h decky /trunk/kernel/arch/xen32/include/ fork directories  
/trunk/kernel/arch/xen32/include/mm
1807 6654 d 2 h decky /trunk/kernel/arch/xen32/ fork directories  
/trunk/kernel/arch/xen32/include/boot
/trunk/kernel/arch/xen32/include/boot/boot.h
/trunk/kernel/arch/xen32/src/smp
/trunk/kernel/arch/xen32/src/mm
1806 6654 d 2 h decky /trunk/kernel/arch/xen32/ fork directories  
/trunk/kernel/arch/xen32/include/boot
/trunk/kernel/arch/xen32/src/smp
/trunk/kernel/arch/xen32/_link.ld.in
/trunk/kernel/arch/xen32/src/boot/boot.S
1805 6654 d 9 h decky /trunk/kernel/arch/xen32/src/boot/ make Xen recognize the kernel image  
/trunk/kernel/arch/xen32/src/boot
/trunk/kernel/arch/xen32/src/boot/boot.S
1804 6654 d 9 h decky /trunk/kernel/arch/xen32/ fork Xen32 makefile and linker script  
/trunk/kernel/arch/xen32/src/boot
1803 6654 d 20 h decky /trunk/ fix critical bug  
/trunk/Makefile
1802 6654 d 20 h decky /trunk/ cleanup and unify the build system  
/trunk/HelenOS.config
/trunk/Makefile
/trunk/tools
/trunk/tools/config.py
/trunk/version
/trunk/boot/tools/config.py
/trunk/kernel/tools/config.py
/trunk/uspace/tools
/trunk/boot/Makefile
/trunk/boot/arch/amd64/Makefile.inc
/trunk/boot/arch/ia32/Makefile.inc
/trunk/boot/arch/ia64/Makefile.inc
/trunk/boot/arch/mips32/Makefile.inc
/trunk/boot/arch/ppc32/Makefile.inc
/trunk/boot/arch/ppc64/Makefile.inc
/trunk/boot/arch/sparc64/Makefile.inc
/trunk/boot/arch/xen32/Makefile.inc
/trunk/boot/boot.config
/trunk/kernel/Makefile
/trunk/kernel/arch/amd64/Makefile.inc
/trunk/kernel/arch/ia32/Makefile.inc
/trunk/kernel/arch/ia64/Makefile.inc
/trunk/kernel/arch/mips32/Makefile.inc
/trunk/kernel/arch/ppc32/Makefile.inc
/trunk/kernel/arch/ppc64/Makefile.inc
/trunk/kernel/arch/sparc64/Makefile.inc
/trunk/kernel/kernel.config
/trunk/uspace/Makefile
/trunk/uspace/uspace.config
1801 6654 d 21 h decky /trunk/uspace/libc/arch/mips32eb/include/ sync mips32eb with mips32  
/trunk/uspace/libc/arch/mips32eb/include/config.h
/trunk/uspace/libc/arch/mips32eb/include/faddr.h
1800 6654 d 21 h decky /trunk/boot/arch/ppc64/loader/ sync ppc64 with ppc32  
/trunk/boot/arch/ppc64/loader/debug.inc
/trunk/boot/arch/ppc64/loader/Makefile
/trunk/boot/arch/ppc64/loader/asm.S
/trunk/boot/arch/ppc64/loader/asm.h
/trunk/boot/arch/ppc64/loader/main.c
/trunk/boot/arch/ppc64/loader/main.h
/trunk/boot/arch/ppc64/loader/ofwarch.c
1799 6654 d 21 h decky /trunk/boot/arch/ppc32/loader/ fix typo  
/trunk/boot/arch/ppc32/loader/ofwarch.c
1798 6654 d 21 h decky /trunk/uspace/ make uspace compile for ppc64  
/trunk/uspace/kbd/arch/ppc64
/trunk/uspace/kbd/arch/ppc64/include
/trunk/uspace/kbd/arch/ppc64/include/kbd.h
/trunk/uspace/kbd/arch/ppc64/src
/trunk/uspace/kbd/arch/ppc64/src/kbd.c
/trunk/uspace/kbd/arch/sparc64/include/kbd.h
/trunk/uspace/libc/arch/ppc64/Makefile.inc
1797 6654 d 21 h decky /trunk/uspace/ dummy Sparc64 uspace support (it just compiles)  
/trunk/uspace/kbd/arch/sparc64
/trunk/uspace/kbd/arch/sparc64/include
/trunk/uspace/kbd/arch/sparc64/include/kbd.h
/trunk/uspace/kbd/arch/sparc64/src
/trunk/uspace/kbd/arch/sparc64/src/kbd.c
/trunk/uspace/libc/arch/sparc64
/trunk/uspace/libc/arch/sparc64/Makefile.inc
/trunk/uspace/libc/arch/sparc64/_link.ld.in
/trunk/uspace/libc/arch/sparc64/include
/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/faddr.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/thread.h
/trunk/uspace/libc/arch/sparc64/include/types.h
/trunk/uspace/libc/arch/sparc64/src
/trunk/uspace/libc/arch/sparc64/src/entry.s
/trunk/uspace/libc/arch/sparc64/src/psthread.S
/trunk/uspace/libc/arch/sparc64/src/syscall.c
/trunk/uspace/libc/arch/sparc64/src/thread.c
/trunk/uspace/libc/arch/sparc64/src/thread_entry.s
1796 6654 d 22 h decky /trunk/boot/tools/ia64/ new place for vmaxlma  
/trunk/boot/tools/ia64
/trunk/boot/tools/ia64/vmaxlma.c
1795 6654 d 22 h decky /trunk/contrib/ remove orphaned directory  
/trunk/contrib/arch
1794 6654 d 22 h decky /trunk/ move contrib from kernel/ to /
update Sparc64 toolchain to use Binutils 2.17 (neeeded for linking uspace)
 
/trunk/contrib
/trunk/contrib/arch/ia64
/trunk/kernel/contrib
/trunk/contrib/toolchain/toolchain.sparc64.sh
1793 6657 d 10 h jermar /trunk/kernel/ Change hw_map() on sparc64 to use virtual addresses that are
beyond the end of physical memory. It is beneficial in two
ways: first, physical memory is no longer being wasted by
otherwise necessary calls to frame_alloc() and, second,
virtual addresses for devices are now correctly allocated
and do not overlap with the 4M TLB-locked mapping for
kernel text and data.
 
/trunk/kernel/arch/ia32/src/mm/frame.c
/trunk/kernel/arch/sparc64/include/mm/frame.h
/trunk/kernel/arch/sparc64/src/mm/frame.c
/trunk/kernel/arch/sparc64/src/mm/page.c
/trunk/kernel/arch/sparc64/src/mm/tlb.c
/trunk/kernel/generic/src/mm/as.c
1792 6657 d 23 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
1791 6658 d 1 h jermar /trunk/boot/arch/sparc64/loader/ Switch to identically mapped stack during boot.
Put stack related and register related macros to dedicated
header files.
 
/trunk/boot/arch/sparc64/loader/register.h
/trunk/boot/arch/sparc64/loader/stack.h
/trunk/boot/arch/sparc64/loader/asm.S
/trunk/boot/arch/sparc64/loader/boot.S
1790 6658 d 4 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 6658 d 6 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 6660 d 3 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