Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1909 |
6574 d 13 h |
jermar |
/trunk/ |
Extend the OFW device tree node with a void pointer. The boot loader is
supposed to reset all pointers in all nodes. The kernel uses the pointer
to recognize that a particular device has already been visited and initialized.
Read interrupt mapping from the OFW device tree for FHC devices (z8530) and
EBUS devices (ns16550). In case of FHC devices, remove hardwired values from
the code and use only values read from the tree. FHC initialization is started
when a FHC device wants to map its interrupt. In case of EBUS devices, map
the interrupt to INO. Interrupt enabling in the interrupt controller for that
specific interrupt is not implemented yet. |
|
/trunk/boot/genarch/ofw_tree.c /trunk/boot/genarch/ofw_tree.h /trunk/kernel/arch/sparc64/include/drivers/fhc.h /trunk/kernel/arch/sparc64/src/drivers/fhc.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/genarch/include/ofw/ofw_tree.h /trunk/kernel/genarch/src/kbd/z8530.c /trunk/kernel/genarch/src/ofw/ebus.c /trunk/kernel/genarch/src/ofw/fhc.c
|
1908 |
6577 d 0 h |
jermar |
/trunk/kernel/genarch/ |
Add function to find OFW tree node by handle. |
|
/trunk/kernel/genarch/include/ofw/ofw_tree.h /trunk/kernel/genarch/src/ofw/ofw_tree.c
|
1907 |
6577 d 0 h |
jermar |
/trunk/ |
Add node handle to in-memory ofw tree node.
This is essential for interrupt mapping on sparc64
and perhaps on other platforms that have OpenFirmware. |
|
/trunk/boot/genarch/ofw_tree.c /trunk/boot/genarch/ofw_tree.h /trunk/kernel/genarch/include/ofw/ofw_tree.h
|
1906 |
6577 d 16 h |
jermar |
/trunk/ |
Small improvements in sparc64. |
|
/trunk/boot/arch/sparc64/loader/boot.S /trunk/boot/arch/sparc64/loader/register.h /trunk/kernel/arch/sparc64/src/start.S
|
1905 |
6578 d 0 h |
jermar |
/trunk/kernel/arch/sparc64/src/ |
Small fixes.
The sparc64 kernel now compiles again even if not compiled with SMP support. |
|
/trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/start.S
|
1904 |
6578 d 19 h |
jermar |
/trunk/kernel/ |
IPI/cross-call support for sparc64.
SMP on sparc64 is now fully supported. |
|
/trunk/kernel/arch/sparc64/include/interrupt.h /trunk/kernel/arch/sparc64/include/trap/interrupt.h /trunk/kernel/arch/sparc64/src/smp/ipi.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/generic/src/mm/tlb.c
|
1903 |
6579 d 14 h |
jermar |
/trunk/ |
SMP stuff for sparc64.
Almost complete except for IPIs.
The absence of IPI support deadlocks
the kernel when more CPUs are configured. |
|
/trunk/kernel/arch/sparc64/src/smp /trunk/kernel/arch/sparc64/src/smp/ipi.c /trunk/kernel/arch/sparc64/src/smp/smp.c
/trunk/boot/arch/sparc64/loader/ofwarch.c /trunk/boot/arch/sparc64/loader/register.h /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/atomic.h /trunk/kernel/arch/sparc64/include/cpu.h /trunk/kernel/arch/sparc64/include/interrupt.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/src/cpu/cpu.c /trunk/kernel/arch/sparc64/src/mm/as.c /trunk/kernel/arch/sparc64/src/mm/frame.c /trunk/kernel/arch/sparc64/src/mm/page.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/kernel.config
|
1902 |
6580 d 18 h |
jermar |
/trunk/kernel/arch/sparc64/include/ |
Implement spinlock and test_and_set for sparc64. |
|
/trunk/kernel/arch/sparc64/include/atomic.h /trunk/kernel/arch/sparc64/include/barrier.h
|
1901 |
6580 d 19 h |
jermar |
/trunk/kernel/ |
Make SMP related parts of main.c more generic.
Move initialization of local APIC to architecture specific code.
Add arch_post_cpu_init() to support the above. |
|
/trunk/kernel/generic/src/smp/smp.c
/trunk/kernel/Makefile /trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/ia32/include/smp/mps.h /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/ia32/src/smp/mps.c /trunk/kernel/arch/ia32/src/smp/smp.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/mips32/src/mips32.c /trunk/kernel/arch/ppc32/src/ppc32.c /trunk/kernel/arch/ppc64/src/ppc64.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/xen32/src/xen32.c /trunk/kernel/generic/include/arch.h /trunk/kernel/generic/include/smp/smp.h /trunk/kernel/generic/src/main/kinit.c /trunk/kernel/generic/src/main/main.c
|
1900 |
6580 d 21 h |
jermar |
/trunk/kernel/arch/sparc64/src/ |
Block the secondary processors after they setup kernel mapping in ITLB and DTLB and
switch to kernel trap table. |
|
/trunk/kernel/arch/sparc64/src/start.S
|
1899 |
6580 d 22 h |
jermar |
/trunk/ |
sparc64 work:
- Loader now starts all processors.
- Kernel halts all but the bootstrup processor for now.
- Read clock-frequency from the respective processor node in the device tree |
|
/trunk/boot/arch/sparc64/loader/asm.S /trunk/boot/arch/sparc64/loader/asm.h /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/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/boot/boot.h /trunk/kernel/arch/sparc64/include/register.h /trunk/kernel/arch/sparc64/src/cpu/cpu.c /trunk/kernel/arch/sparc64/src/drivers/tick.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/start.S /trunk/kernel/genarch/include/ofw/ofw_tree.h /trunk/kernel/genarch/src/ofw/ofw_tree.c
|
1898 |
6581 d 14 h |
jermar |
/trunk/kernel/ |
Support for FFB (Creator 3D) framebuffer detection on sparc64.
(Not tested as the Ultra 60, which I have for testing, and which
only has this type of framebuffer doesn't boot for some unknown reason.) |
|
/trunk/kernel/genarch/src/ofw/upa.c
/trunk/kernel/arch/sparc64/src/drivers/scr.c /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/include/ofw/ofw_tree.h
|
1897 |
6583 d 21 h |
jermar |
/trunk/ |
Convert sparc64 framebuffer code to configure from the OpenFirmware device tree memory representation. |
|
/trunk/kernel/arch/sparc64/include/drivers/scr.h /trunk/kernel/arch/sparc64/src/drivers/scr.c
/trunk/boot/arch/sparc64/loader/main.c /trunk/boot/arch/sparc64/loader/main.h /trunk/boot/arch/sparc64/loader/ofwarch.c /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/boot/boot.h /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/genarch/include/ofw/ofw_tree.h /trunk/kernel/genarch/src/ofw/pci.c
|
1896 |
6584 d 13 h |
jermar |
/trunk/ |
Convert sparc64 to detect keyboard and determine
its physical address by walking the memory representation
of the OpenFirmware device tree.
Add bus-specific functions that know how to apply the
"ranges" property to one component of the "reg" property.
Buses supported so far include FHC, EBUS and PCI. |
|
/trunk/kernel/genarch/src/ofw/ebus.c /trunk/kernel/genarch/src/ofw/fhc.c /trunk/kernel/genarch/src/ofw/pci.c
/trunk/boot/arch/sparc64/loader/main.c /trunk/boot/arch/sparc64/loader/main.h /trunk/boot/arch/sparc64/loader/ofwarch.c /trunk/boot/genarch/ofw_tree.c /trunk/boot/generic/string.c /trunk/boot/generic/string.h /trunk/kernel/Makefile /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/boot/boot.h /trunk/kernel/arch/sparc64/include/drivers/kbd.h /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/include/kbd/key.h /trunk/kernel/genarch/include/kbd/ns16550.h /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/include/ofw/ofw_tree.h /trunk/kernel/genarch/src/kbd/i8042.c /trunk/kernel/genarch/src/kbd/key.c /trunk/kernel/genarch/src/kbd/ns16550.c /trunk/kernel/genarch/src/kbd/z8530.c /trunk/kernel/genarch/src/ofw/ofw_tree.c /trunk/kernel/generic/include/func.h /trunk/kernel/generic/src/lib/func.c /trunk/kernel/kernel.config
|
1895 |
6586 d 14 h |
jermar |
/trunk/ |
More ofw_tree work and fixes.
Add ofw_tree_lookup().
Every ofw_tree_node now also contains a disambigued name which is essential for tree lookups. |
|
/trunk/boot/genarch/ofw.c /trunk/boot/genarch/ofw.h /trunk/boot/genarch/ofw_tree.c /trunk/boot/genarch/ofw_tree.h /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/genarch/Makefile.inc /trunk/kernel/genarch/include/ofw/ofw_tree.h /trunk/kernel/genarch/src/ofw/ofw_tree.c
|
1894 |
6587 d 12 h |
jermar |
/trunk/ |
Add balloc() (a.k.a boot allocator):
- balloc() only needs to know how to allocate memory.
- Memory allocated via balloc() is supposed to be passed to kernel and never freed by boot itself.
- make kernel aware of boot allocations
More work on OFW device tree:
- use balloc() to efficiently and safely allocate memory for the canonical copy of the device tree
sparc64 boot:
- pass OFW device tree root node pointer to kernel |
|
/trunk/boot/genarch/balloc.c /trunk/boot/genarch/balloc.h /trunk/kernel/genarch/include/ofw /trunk/kernel/genarch/include/ofw/ofw_tree.h /trunk/kernel/genarch/src/ofw /trunk/kernel/genarch/src/ofw/ofw_tree.c
/trunk/boot/arch/sparc64/loader/Makefile /trunk/boot/arch/sparc64/loader/main.c /trunk/boot/arch/sparc64/loader/main.h /trunk/boot/genarch/ofw_tree.c /trunk/boot/genarch/ofw_tree.h /trunk/kernel/arch/sparc64/include/boot/boot.h /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/genarch/Makefile.inc /trunk/kernel/generic/include/config.h /trunk/kernel/generic/src/main/main.c /trunk/kernel/generic/src/mm/frame.c
|
1893 |
6587 d 15 h |
jermar |
/trunk/boot/ |
Add prototype implementation for creating canonical copy of OpenFirmware device tree. |
|
/trunk/boot/genarch/ofw_tree.c /trunk/boot/genarch/ofw_tree.h
/trunk/boot/arch/sparc64/loader/Makefile /trunk/boot/genarch/ofw.c /trunk/boot/genarch/ofw.h
|
1892 |
6588 d 0 h |
jermar |
/trunk/kernel/arch/sparc64/src/mm/ |
Small improvement in initialization of sparc64's TBSs. |
|
/trunk/kernel/arch/sparc64/src/mm/as.c
|
1891 |
6588 d 12 h |
jermar |
/trunk/kernel/ |
sparc64 work:
- Experimental support for TSB (Translation Storage Buffer). |
|
/trunk/kernel/Makefile /trunk/kernel/arch/amd64/include/mm/as.h /trunk/kernel/arch/ia32/include/mm/as.h /trunk/kernel/arch/ia64/include/mm/as.h /trunk/kernel/arch/mips32/include/mm/as.h /trunk/kernel/arch/ppc32/include/mm/as.h /trunk/kernel/arch/ppc64/include/mm/as.h /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/arch.h /trunk/kernel/arch/sparc64/include/barrier.h /trunk/kernel/arch/sparc64/include/mm/mmu.h /trunk/kernel/arch/sparc64/include/mm/tsb.h /trunk/kernel/arch/sparc64/include/mm/tte.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/src/mm/as.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/mm/tsb.c /trunk/kernel/arch/xen32/include/mm/as.h /trunk/kernel/genarch/src/mm/asid.c /trunk/kernel/generic/include/mm/as.h /trunk/kernel/generic/src/mm/as.c
|
1890 |
6588 d 23 h |
jermar |
/trunk/ |
- Create a dedicated slab cache for as_t objects and switch from malloc/free to slab_alloc/slab_free for
them.
- Slightly fix and improve both the kernel and userspace atomic_add() on sparc64.
- More TSB work on the sparc64 front. |
|
/trunk/kernel/arch/amd64/include/mm/as.h /trunk/kernel/arch/ia32/include/mm/as.h /trunk/kernel/arch/ia64/include/mm/as.h /trunk/kernel/arch/mips32/include/mm/as.h /trunk/kernel/arch/ppc32/include/mm/as.h /trunk/kernel/arch/ppc64/include/mm/as.h /trunk/kernel/arch/sparc64/include/atomic.h /trunk/kernel/arch/sparc64/include/mm/tsb.h /trunk/kernel/arch/sparc64/src/mm/as.c /trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/xen32/include/mm/as.h /trunk/kernel/generic/include/mm/as.h /trunk/kernel/generic/src/mm/as.c /trunk/uspace/libc/arch/sparc64/include/atomic.h
|
1889 |
6589 d 14 h |
jermar |
/trunk/kernel/ |
Fix bug in mm/as.c:
- as_area_destroy() should not work with AS but as
sparc64 work:
- start implementing TSB support |
|
/trunk/kernel/arch/sparc64/include/mm/tsb.h /trunk/kernel/arch/sparc64/src/mm/tsb.c
/trunk/kernel/arch/amd64/include/mm/as.h /trunk/kernel/arch/ia32/include/mm/as.h /trunk/kernel/arch/ia64/include/mm/as.h /trunk/kernel/arch/mips32/include/mm/as.h /trunk/kernel/arch/ppc32/include/mm/as.h /trunk/kernel/arch/ppc64/include/mm/as.h /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/mm/as.h /trunk/kernel/arch/xen32/include/mm/as.h /trunk/kernel/genarch/src/mm/asid.c /trunk/kernel/generic/include/mm/as.h /trunk/kernel/generic/src/mm/as.c /trunk/kernel/kernel.config
|
1888 |
6592 d 17 h |
jermar |
/trunk/ |
C99 compliant header guards (hopefully) everywhere in the kernel.
Formatting and indentation changes.
Small improvements in sparc64. |
|
/trunk/kernel/arch/ia64/include/smp/atomic.h
/trunk/kernel/arch/amd64/include/arg.h /trunk/kernel/arch/amd64/include/asm.h /trunk/kernel/arch/amd64/include/atomic.h /trunk/kernel/arch/amd64/include/boot/boot.h /trunk/kernel/arch/amd64/include/byteorder.h /trunk/kernel/arch/amd64/include/context.h /trunk/kernel/arch/amd64/include/context_offset.h /trunk/kernel/arch/amd64/include/cpu.h /trunk/kernel/arch/amd64/include/cpuid.h /trunk/kernel/arch/amd64/include/ddi/ddi.h /trunk/kernel/arch/amd64/include/debugger.h /trunk/kernel/arch/amd64/include/drivers/vesa.h /trunk/kernel/arch/amd64/include/elf.h /trunk/kernel/arch/amd64/include/faddr.h /trunk/kernel/arch/amd64/include/interrupt.h /trunk/kernel/arch/amd64/include/memstr.h /trunk/kernel/arch/amd64/include/mm/as.h /trunk/kernel/arch/amd64/include/mm/frame.h /trunk/kernel/arch/amd64/include/mm/page.h /trunk/kernel/arch/amd64/include/mm/ptl.h /trunk/kernel/arch/amd64/include/mm/tlb.h /trunk/kernel/arch/amd64/include/pm.h /trunk/kernel/arch/amd64/include/syscall.h /trunk/kernel/arch/amd64/include/types.h /trunk/kernel/arch/amd64/src/ddi/ddi.c /trunk/kernel/arch/amd64/src/debugger.c /trunk/kernel/arch/amd64/src/interrupt.c /trunk/kernel/arch/amd64/src/mm/memory_init.c /trunk/kernel/arch/amd64/src/mm/page.c /trunk/kernel/arch/amd64/src/pm.c /trunk/kernel/arch/amd64/src/proc/scheduler.c /trunk/kernel/arch/amd64/src/proc/task.c /trunk/kernel/arch/amd64/src/syscall.c /trunk/kernel/arch/amd64/src/userspace.c /trunk/kernel/arch/ia32/include/arg.h /trunk/kernel/arch/ia32/include/asm.h /trunk/kernel/arch/ia32/include/atomic.h /trunk/kernel/arch/ia32/include/barrier.h /trunk/kernel/arch/ia32/include/bios/bios.h /trunk/kernel/arch/ia32/include/boot/boot.h /trunk/kernel/arch/ia32/include/boot/memmap.h /trunk/kernel/arch/ia32/include/byteorder.h /trunk/kernel/arch/ia32/include/context.h /trunk/kernel/arch/ia32/include/cpu.h /trunk/kernel/arch/ia32/include/cpuid.h /trunk/kernel/arch/ia32/include/ddi/ddi.h /trunk/kernel/arch/ia32/include/debug.h /trunk/kernel/arch/ia32/include/drivers/ega.h /trunk/kernel/arch/ia32/include/drivers/i8042.h /trunk/kernel/arch/ia32/include/drivers/i8254.h /trunk/kernel/arch/ia32/include/drivers/i8259.h /trunk/kernel/arch/ia32/include/drivers/vesa.h /trunk/kernel/arch/ia32/include/elf.h /trunk/kernel/arch/ia32/include/faddr.h /trunk/kernel/arch/ia32/include/fpu_context.h /trunk/kernel/arch/ia32/include/interrupt.h /trunk/kernel/arch/ia32/include/memstr.h /trunk/kernel/arch/ia32/include/mm/as.h /trunk/kernel/arch/ia32/include/mm/asid.h /trunk/kernel/arch/ia32/include/mm/frame.h /trunk/kernel/arch/ia32/include/mm/memory_init.h /trunk/kernel/arch/ia32/include/mm/page.h /trunk/kernel/arch/ia32/include/mm/tlb.h /trunk/kernel/arch/ia32/include/pm.h /trunk/kernel/arch/ia32/include/smp/ap.h /trunk/kernel/arch/ia32/include/smp/apic.h /trunk/kernel/arch/ia32/include/smp/mps.h /trunk/kernel/arch/ia32/include/smp/smp.h /trunk/kernel/arch/ia32/include/types.h /trunk/kernel/arch/ia32/src/bios/bios.c /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/ia32/src/mm/as.c /trunk/kernel/arch/ia32/src/mm/frame.c /trunk/kernel/arch/ia32/src/mm/memory_init.c /trunk/kernel/arch/ia32/src/mm/page.c /trunk/kernel/arch/ia32/src/mm/tlb.c /trunk/kernel/arch/ia32/src/pm.c /trunk/kernel/arch/ia32/src/proc/thread.c /trunk/kernel/arch/ia32/src/smp/apic.c /trunk/kernel/arch/ia32/src/smp/ipi.c /trunk/kernel/arch/ia32/src/smp/mps.c /trunk/kernel/arch/ia32/src/smp/smp.c /trunk/kernel/arch/ia32/src/userspace.c /trunk/kernel/arch/ia64/include/arg.h /trunk/kernel/arch/ia64/include/asm.h /trunk/kernel/arch/ia64/include/atomic.h /trunk/kernel/arch/ia64/include/barrier.h /trunk/kernel/arch/ia64/include/byteorder.h /trunk/kernel/arch/ia64/include/context.h /trunk/kernel/arch/ia64/include/cpu.h /trunk/kernel/arch/ia64/include/debug.h /trunk/kernel/arch/ia64/include/drivers/it.h /trunk/kernel/arch/ia64/include/elf.h /trunk/kernel/arch/ia64/include/fpu_context.h /trunk/kernel/arch/ia64/include/interrupt.h /trunk/kernel/arch/ia64/include/memstr.h /trunk/kernel/arch/ia64/include/mm/as.h /trunk/kernel/arch/ia64/include/mm/asid.h /trunk/kernel/arch/ia64/include/mm/frame.h /trunk/kernel/arch/ia64/include/mm/memory_init.h /trunk/kernel/arch/ia64/include/mm/page.h /trunk/kernel/arch/ia64/include/mm/tlb.h /trunk/kernel/arch/ia64/include/mm/vhpt.h /trunk/kernel/arch/ia64/include/pal/pal.h /trunk/kernel/arch/ia64/include/proc/task.h /trunk/kernel/arch/ia64/include/register.h /trunk/kernel/arch/ia64/include/ski/ski.h /trunk/kernel/arch/ia64/include/stack.h /trunk/kernel/arch/ia64/include/types.h /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/ia64/src/interrupt.c /trunk/kernel/arch/ia64/src/mm/as.c /trunk/kernel/arch/ia64/src/mm/frame.c /trunk/kernel/arch/ia64/src/mm/page.c /trunk/kernel/arch/ia64/src/mm/vhpt.c /trunk/kernel/arch/ia64/src/proc/scheduler.c /trunk/kernel/arch/ia64/src/putchar.c /trunk/kernel/arch/ia64/src/ski/ski.c /trunk/kernel/arch/mips32/include/arg.h /trunk/kernel/arch/mips32/include/asm.h /trunk/kernel/arch/mips32/include/asm/boot.h /trunk/kernel/arch/mips32/include/asm/regname.h /trunk/kernel/arch/mips32/include/atomic.h /trunk/kernel/arch/mips32/include/barrier.h /trunk/kernel/arch/mips32/include/boot.h /trunk/kernel/arch/mips32/include/byteorder.h /trunk/kernel/arch/mips32/include/cache.h /trunk/kernel/arch/mips32/include/console.h /trunk/kernel/arch/mips32/include/context.h /trunk/kernel/arch/mips32/include/cp0.h /trunk/kernel/arch/mips32/include/cpu.h /trunk/kernel/arch/mips32/include/debug.h /trunk/kernel/arch/mips32/include/debugger.h /trunk/kernel/arch/mips32/include/drivers/arc.h /trunk/kernel/arch/mips32/include/drivers/msim.h /trunk/kernel/arch/mips32/include/drivers/serial.h /trunk/kernel/arch/mips32/include/elf.h /trunk/kernel/arch/mips32/include/exception.h /trunk/kernel/arch/mips32/include/faddr.h /trunk/kernel/arch/mips32/include/fpu_context.h /trunk/kernel/arch/mips32/include/interrupt.h /trunk/kernel/arch/mips32/include/memstr.h /trunk/kernel/arch/mips32/include/mm/as.h /trunk/kernel/arch/mips32/include/mm/asid.h /trunk/kernel/arch/mips32/include/mm/frame.h /trunk/kernel/arch/mips32/include/mm/memory_init.h /trunk/kernel/arch/mips32/include/mm/page.h /trunk/kernel/arch/mips32/include/mm/tlb.h /trunk/kernel/arch/mips32/include/proc/task.h /trunk/kernel/arch/mips32/include/stack.h /trunk/kernel/arch/mips32/include/types.h /trunk/kernel/arch/mips32/src/cache.c /trunk/kernel/arch/mips32/src/console.c /trunk/kernel/arch/mips32/src/ddi/ddi.c /trunk/kernel/arch/mips32/src/debugger.c /trunk/kernel/arch/mips32/src/drivers/arc.c /trunk/kernel/arch/mips32/src/drivers/msim.c /trunk/kernel/arch/mips32/src/drivers/serial.c /trunk/kernel/arch/mips32/src/interrupt.c /trunk/kernel/arch/mips32/src/mips32.c /trunk/kernel/arch/mips32/src/mm/as.c /trunk/kernel/arch/mips32/src/mm/page.c /trunk/kernel/arch/ppc32/include/arg.h /trunk/kernel/arch/ppc32/include/asm.h /trunk/kernel/arch/ppc32/include/asm/regname.h /trunk/kernel/arch/ppc32/include/atomic.h /trunk/kernel/arch/ppc32/include/barrier.h /trunk/kernel/arch/ppc32/include/boot/boot.h /trunk/kernel/arch/ppc32/include/byteorder.h /trunk/kernel/arch/ppc32/include/context.h /trunk/kernel/arch/ppc32/include/context_offset.h /trunk/kernel/arch/ppc32/include/cpu.h /trunk/kernel/arch/ppc32/include/cpuid.h /trunk/kernel/arch/ppc32/include/debug.h /trunk/kernel/arch/ppc32/include/drivers/cuda.h /trunk/kernel/arch/ppc32/include/drivers/pic.h /trunk/kernel/arch/ppc32/include/elf.h /trunk/kernel/arch/ppc32/include/exception.h /trunk/kernel/arch/ppc32/include/faddr.h /trunk/kernel/arch/ppc32/include/fpu_context.h /trunk/kernel/arch/ppc32/include/interrupt.h /trunk/kernel/arch/ppc32/include/memstr.h /trunk/kernel/arch/ppc32/include/mm/as.h /trunk/kernel/arch/ppc32/include/mm/asid.h /trunk/kernel/arch/ppc32/include/mm/frame.h /trunk/kernel/arch/ppc32/include/mm/memory_init.h /trunk/kernel/arch/ppc32/include/mm/tlb.h /trunk/kernel/arch/ppc32/include/proc/task.h /trunk/kernel/arch/ppc32/include/types.h /trunk/kernel/arch/ppc32/src/ddi/ddi.c /trunk/kernel/arch/ppc32/src/drivers/pic.c /trunk/kernel/arch/ppc64/include/arg.h /trunk/kernel/arch/ppc64/include/asm.h /trunk/kernel/arch/ppc64/include/asm/regname.h /trunk/kernel/arch/ppc64/include/atomic.h /trunk/kernel/arch/ppc64/include/barrier.h /trunk/kernel/arch/ppc64/include/boot/boot.h /trunk/kernel/arch/ppc64/include/byteorder.h /trunk/kernel/arch/ppc64/include/context.h /trunk/kernel/arch/ppc64/include/context_offset.h /trunk/kernel/arch/ppc64/include/cpu.h /trunk/kernel/arch/ppc64/include/cpuid.h /trunk/kernel/arch/ppc64/include/debug.h /trunk/kernel/arch/ppc64/include/elf.h /trunk/kernel/arch/ppc64/include/exception.h /trunk/kernel/arch/ppc64/include/faddr.h /trunk/kernel/arch/ppc64/include/fpu_context.h /trunk/kernel/arch/ppc64/include/interrupt.h /trunk/kernel/arch/ppc64/include/memstr.h /trunk/kernel/arch/ppc64/include/mm/as.h /trunk/kernel/arch/ppc64/include/mm/asid.h /trunk/kernel/arch/ppc64/include/mm/frame.h /trunk/kernel/arch/ppc64/include/mm/memory_init.h /trunk/kernel/arch/ppc64/include/mm/page.h /trunk/kernel/arch/ppc64/include/mm/tlb.h /trunk/kernel/arch/ppc64/include/proc/task.h /trunk/kernel/arch/ppc64/include/proc/thread.h /trunk/kernel/arch/ppc64/include/types.h /trunk/kernel/arch/ppc64/src/ddi/ddi.c /trunk/kernel/arch/ppc64/src/interrupt.c /trunk/kernel/arch/ppc64/src/mm/frame.c /trunk/kernel/arch/ppc64/src/mm/memory_init.c /trunk/kernel/arch/ppc64/src/mm/page.c /trunk/kernel/arch/ppc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/atomic.h /trunk/kernel/arch/sparc64/include/context_offset.h /trunk/kernel/arch/sparc64/include/trap/trap_table.h /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/mm/as.c /trunk/kernel/arch/sparc64/src/mm/page.c /trunk/kernel/arch/sparc64/src/trap/syscall.c /trunk/kernel/arch/sparc64/src/trap/trap.c /trunk/kernel/arch/xen32/include/asm.h /trunk/kernel/arch/xen32/include/boot/boot.h /trunk/kernel/arch/xen32/include/drivers/xconsole.h /trunk/kernel/arch/xen32/include/hypercall.h /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/include/pm.h /trunk/kernel/arch/xen32/include/types.h /trunk/kernel/arch/xen32/src/interrupt.c /trunk/kernel/arch/xen32/src/mm/memory_init.c /trunk/kernel/genarch/include/acpi/acpi.h /trunk/kernel/genarch/include/acpi/madt.h /trunk/kernel/genarch/include/fb/fb.h /trunk/kernel/genarch/include/fb/font-8x16.h /trunk/kernel/genarch/include/mm/as_ht.h /trunk/kernel/genarch/include/mm/as_pt.h /trunk/kernel/genarch/include/mm/asid_fifo.h /trunk/kernel/genarch/include/mm/page_ht.h /trunk/kernel/genarch/include/mm/page_pt.h /trunk/kernel/genarch/include/softint/division.h /trunk/kernel/genarch/src/acpi/acpi.c /trunk/kernel/genarch/src/acpi/madt.c /trunk/kernel/genarch/src/fb/fb.c /trunk/kernel/genarch/src/fb/font-8x16.c /trunk/kernel/genarch/src/kbd/ns16550.c /trunk/kernel/genarch/src/mm/as_pt.c /trunk/kernel/genarch/src/softint/division.c /trunk/kernel/generic/include/adt/bitmap.h /trunk/kernel/generic/include/adt/btree.h /trunk/kernel/generic/include/adt/fifo.h /trunk/kernel/generic/include/adt/list.h /trunk/kernel/generic/include/atomic.h /trunk/kernel/generic/include/bitops.h /trunk/kernel/generic/include/byteorder.h /trunk/kernel/generic/include/config.h /trunk/kernel/generic/include/console/chardev.h /trunk/kernel/generic/include/console/cmd.h /trunk/kernel/generic/include/console/console.h /trunk/kernel/generic/include/console/kconsole.h /trunk/kernel/generic/include/console/klog.h /trunk/kernel/generic/include/context.h /trunk/kernel/generic/include/ddi/ddi.h /trunk/kernel/generic/include/ddi/ddi_arg.h /trunk/kernel/generic/include/debug.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/ipc/ipc.h /trunk/kernel/generic/include/ipc/ipcrsc.h /trunk/kernel/generic/include/ipc/irq.h /trunk/kernel/generic/include/ipc/sysipc.h /trunk/kernel/generic/include/main/kinit.h /trunk/kernel/generic/include/main/main.h /trunk/kernel/generic/include/main/uinit.h /trunk/kernel/generic/include/main/version.h /trunk/kernel/generic/include/memstr.h /trunk/kernel/generic/include/mm/as.h /trunk/kernel/generic/include/mm/asid.h /trunk/kernel/generic/include/mm/buddy.h /trunk/kernel/generic/include/mm/page.h /trunk/kernel/generic/include/mm/slab.h /trunk/kernel/generic/include/mm/tlb.h /trunk/kernel/generic/include/panic.h /trunk/kernel/generic/include/preemption.h /trunk/kernel/generic/include/print.h /trunk/kernel/generic/include/printf/printf_core.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/putchar.h /trunk/kernel/generic/include/security/cap.h /trunk/kernel/generic/include/smp/ipi.h /trunk/kernel/generic/include/smp/smp.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/synch/condvar.h /trunk/kernel/generic/include/synch/futex.h /trunk/kernel/generic/include/synch/mutex.h /trunk/kernel/generic/include/synch/rwlock.h /trunk/kernel/generic/include/synch/semaphore.h /trunk/kernel/generic/include/synch/spinlock.h /trunk/kernel/generic/include/synch/synch.h /trunk/kernel/generic/include/synch/waitq.h /trunk/kernel/generic/include/syscall/copy.h /trunk/kernel/generic/include/syscall/sysarg64.h /trunk/kernel/generic/include/sysinfo/sysinfo.h /trunk/kernel/generic/include/test.h /trunk/kernel/generic/include/userspace.h /trunk/kernel/generic/src/console/chardev.c /trunk/kernel/generic/src/console/cmd.c /trunk/kernel/generic/src/console/console.c /trunk/kernel/generic/src/console/kconsole.c /trunk/kernel/generic/src/console/klog.c /trunk/kernel/generic/src/ddi/ddi.c /trunk/kernel/generic/src/debug/symtab.c /trunk/kernel/generic/src/ipc/ipcrsc.c /trunk/kernel/generic/src/printf/printf.c /trunk/kernel/generic/src/printf/printf_core.c /trunk/kernel/generic/src/printf/snprintf.c /trunk/kernel/generic/src/printf/sprintf.c /trunk/kernel/generic/src/printf/vprintf.c /trunk/kernel/generic/src/printf/vsnprintf.c /trunk/kernel/generic/src/printf/vsprintf.c /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/generic/src/security/cap.c /trunk/kernel/generic/src/synch/rwlock.c /trunk/kernel/generic/src/syscall/copy.c /trunk/uspace/fb/fb.c /trunk/uspace/libc/arch/sparc64/include/atomic.h
|
1887 |
6592 d 21 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
|
1886 |
6592 d 21 h |
jermar |
/trunk/uspace/fb/ |
Mapping framebuffer as cacheable was identified to cause the sparc64 port not work on Sun Ultra 5. |
|
/trunk/uspace/fb/fb.c
|
1885 |
6593 d 2 h |
jermar |
/trunk/kernel/arch/sparc64/include/ |
On sparc64, get_stack_base() must use the unbiased %sp (i.e. %sp + 2047). |
|
/trunk/kernel/arch/sparc64/include/asm.h
|
1884 |
6593 d 20 h |
jermar |
/trunk/kernel/arch/sparc64/src/ |
Unfortunatelly, the sparc64's FPRS register is writable by non-privileged software
so we cannot save only half of the FPU context depending on FPRS dirty bits.
Instead, we must save the entire FPU register file. |
|
/trunk/kernel/arch/sparc64/src/fpu_context.c
|
1883 |
6593 d 20 h |
jermar |
/trunk/kernel/arch/sparc64/ |
More sparc64 FPU trap handlers. |
|
/trunk/kernel/arch/sparc64/include/trap/exception.h /trunk/kernel/arch/sparc64/src/trap/exception.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S
|
1882 |
6593 d 21 h |
jermar |
/trunk/kernel/ |
Support for sparc64 FPU context. |
|
/trunk/kernel/arch/sparc64/src/fpu_context.c
/trunk/kernel/arch/amd64/include/arch.h /trunk/kernel/arch/ia32/include/arch.h /trunk/kernel/arch/ia64/include/arch.h /trunk/kernel/arch/ia64/src/interrupt.c /trunk/kernel/arch/mips32/include/arch.h /trunk/kernel/arch/mips32/src/fpu_context.c /trunk/kernel/arch/ppc32/include/arch.h /trunk/kernel/arch/ppc64/include/arch.h /trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/asm.h /trunk/kernel/arch/sparc64/include/fpu_context.h /trunk/kernel/arch/sparc64/include/regdef.h /trunk/kernel/arch/sparc64/include/register.h /trunk/kernel/arch/sparc64/include/trap/exception.h /trunk/kernel/arch/sparc64/src/asm.S /trunk/kernel/arch/sparc64/src/dummy.s /trunk/kernel/arch/sparc64/src/trap/exception.c /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/include/fpu_context.h /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/kernel.config /trunk/kernel/test/fpu/fpu1/test.c
|
1881 |
6594 d 21 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 |
6596 d 13 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
|
1879 |
6597 d 22 h |
jermar |
/trunk/kernel/arch/sparc64/src/ |
Revert last change.
The register window save area is automatically allocated by the SAVE instruction. |
|
/trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/sparc64.c
|
1878 |
6598 d 0 h |
jermar |
/trunk/kernel/arch/sparc64/src/ |
Even the first kernel register window after the switch from userspace stack needs
proper register window save area [sparc64]. |
|
/trunk/kernel/arch/sparc64/src/proc/scheduler.c /trunk/kernel/arch/sparc64/src/sparc64.c
|
1877 |
6598 d 1 h |
jermar |
/trunk/kernel/ |
Coding style fixes.
Remove unneeded sparc64 dummy functions. |
|
/trunk/kernel/arch/amd64/src/fpu_context.c /trunk/kernel/arch/ia32/src/fpu_context.c /trunk/kernel/arch/ia64/src/fpu_context.c /trunk/kernel/arch/ia64/src/start.S /trunk/kernel/arch/sparc64/src/dummy.s /trunk/kernel/generic/include/ipc/ipc.h
|
1876 |
6598 d 1 h |
jermar |
/trunk/kernel/arch/sparc64/src/trap/ |
Fixes for sparc64's preemptible_handler().
Resynchronize CWP with that of TL=0. |
|
/trunk/kernel/arch/sparc64/src/trap/trap_table.S
|
1875 |
6599 d 15 h |
jermar |
/trunk/ |
sparc64 work.
- Changes to enable userspace keyboard drivers.
- Fix z8530 initialization (i.e. clear any pending Tx interrupts).
- Experimental support for framebuffers with inverted colors. |
|
/trunk/kernel/arch/sparc64/Makefile.inc /trunk/kernel/arch/sparc64/include/drivers/z8530.h /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/fhc.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/genarch/include/kbd/z8530.h /trunk/kernel/genarch/src/fb/fb.c /trunk/kernel/genarch/src/kbd/key.c /trunk/kernel/genarch/src/kbd/z8530.c /trunk/kernel/generic/src/ipc/irq.c /trunk/kernel/generic/src/ipc/sysipc.c /trunk/uspace/fb/fb.c
|
1874 |
6599 d 15 h |
jermar |
/trunk/uspace/kbd/ |
Cleanup and reorganize the kbd service a bit. |
|
/trunk/uspace/kbd/arch/ia32/include/scanc.h /trunk/uspace/kbd/arch/ia32/src/scanc.c
/trunk/uspace/kbd/arch/ia32/include/kbd.h /trunk/uspace/kbd/arch/ia32/src/kbd.c /trunk/uspace/kbd/arch/ia64/include/kbd.h /trunk/uspace/kbd/arch/ia64/src/kbd.c /trunk/uspace/kbd/arch/mips32/include/kbd.h /trunk/uspace/kbd/arch/mips32/src/kbd.c /trunk/uspace/kbd/arch/ppc32/include/kbd.h /trunk/uspace/kbd/arch/ppc64/include/kbd.h /trunk/uspace/kbd/include/kbd.h /trunk/uspace/kbd/include/keys.h
|
1873 |
6599 d 15 h |
jermar |
/trunk/uspace/kbd/ |
sparc64 support for the kbd userspace service. |
|
/trunk/uspace/kbd/arch/sparc64/include/scanc.h /trunk/uspace/kbd/arch/sparc64/src/scanc.c /trunk/uspace/kbd/genarch /trunk/uspace/kbd/genarch/include /trunk/uspace/kbd/genarch/include/kbd.h /trunk/uspace/kbd/genarch/include/scanc.h /trunk/uspace/kbd/genarch/src /trunk/uspace/kbd/genarch/src/kbd.c
/trunk/uspace/kbd/Makefile /trunk/uspace/kbd/arch/sparc64/include/kbd.h /trunk/uspace/kbd/arch/sparc64/src/kbd.c
|
1872 |
6600 d 13 h |
jermar |
/trunk/uspace/libc/generic/io/ |
read() and write() now check if the virtual function they want to
call exists. Thus, these calls will not kill the whole task
if called for instance from a driver task but gracefully fail. |
|
/trunk/uspace/libc/generic/io/stream.c
|
1871 |
6601 d 1 h |
jermar |
/trunk/ |
Replace FB_BIG_ENDIAN with FB_INVERT_ENDIAN.
Omit tests for architecture endianness in deciding framebuffer endianness. |
|
/trunk/kernel/arch/mips32/Makefile.inc /trunk/kernel/genarch/src/fb/fb.c /trunk/uspace/fb/Makefile /trunk/uspace/fb/fb.c
|
1870 |
6601 d 13 h |
jermar |
/trunk/kernel/ |
Handle more sparc64 traps and improve handling of already handled traps. |
|
/trunk/kernel/arch/sparc64/include/trap/exception.h /trunk/kernel/arch/sparc64/include/trap/mmu.h /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/trap/exception.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/arch/sparc64/src/trap/mmu.S /trunk/kernel/arch/sparc64/src/trap/trap_table.S /trunk/kernel/generic/include/interrupt.h
|