Subversion Repositories HelenOS

Rev

Go to most recent revision | Hide changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff Changes
3929 5621 d 20 h jermar /trunk/kernel/arch/ Introduce ioport8_t, ioport16_t and ioport32_t. These types are to be used with
pio_read_n() and pio_write_n() functions. This breaks everything.
 
/trunk/kernel/arch/amd64/include/asm.h
/trunk/kernel/arch/amd64/include/types.h
/trunk/kernel/arch/arm32/include/asm.h
/trunk/kernel/arch/arm32/include/types.h
/trunk/kernel/arch/ia32/include/asm.h
/trunk/kernel/arch/ia32/include/types.h
/trunk/kernel/arch/ia64/include/asm.h
/trunk/kernel/arch/ia64/include/types.h
/trunk/kernel/arch/mips32/include/asm.h
/trunk/kernel/arch/mips32/include/types.h
/trunk/kernel/arch/ppc32/include/asm.h
/trunk/kernel/arch/ppc32/include/types.h
/trunk/kernel/arch/sparc64/include/asm.h
/trunk/kernel/arch/sparc64/include/types.h
3922 5623 d 20 h decky /trunk/ make arch_pre_main optional, don't force any specific prototype
simplify boot process
mips32: detect number of configured CPUs in msim
 
/trunk/kernel/arch/arm32/include/boot.h
/trunk/kernel/arch/mips32/include/boot.h
/trunk/boot/arch/arm32/loader/asm.h
/trunk/boot/arch/arm32/loader/boot.S
/trunk/boot/arch/arm32/loader/main.c
/trunk/boot/arch/arm32/loader/main.h
/trunk/boot/arch/mips32/loader/asm.h
/trunk/boot/arch/mips32/loader/boot.S
/trunk/boot/arch/mips32/loader/main.c
/trunk/boot/arch/mips32/loader/main.h
/trunk/kernel/arch/arm32/include/arch.h
/trunk/kernel/arch/arm32/include/asm/boot.h
/trunk/kernel/arch/arm32/src/arm32.c
/trunk/kernel/arch/arm32/src/start.S
/trunk/kernel/arch/ia64/include/arch.h
/trunk/kernel/arch/mips32/include/arch.h
/trunk/kernel/arch/mips32/include/asm/boot.h
/trunk/kernel/arch/mips32/src/mips32.c
/trunk/kernel/arch/mips32/src/smp/smp.c
/trunk/kernel/arch/mips32/src/start.S
/trunk/kernel/arch/ppc32/include/arch.h
/trunk/kernel/arch/ppc32/include/boot/boot.h
/trunk/kernel/arch/ppc32/src/boot/boot.S
/trunk/kernel/arch/ppc32/src/ppc32.c
/trunk/kernel/arch/sparc64/include/arch.h
/trunk/kernel/generic/include/arch.h
3908 5625 d 0 h decky /trunk/ overhaul pareas: use one single physical area for the physical address space not belonging to physical memory  
/trunk/kernel/arch/amd64/include/mm/frame.h
/trunk/kernel/arch/amd64/src/mm/page.c
/trunk/kernel/arch/arm32/include/mm/frame.h
/trunk/kernel/arch/arm32/src/mm/frame.c
/trunk/kernel/arch/arm32/src/mm/page.c
/trunk/kernel/arch/ia32/include/mm/frame.h
/trunk/kernel/arch/ia32/src/mm/frame.c
/trunk/kernel/arch/ia32/src/mm/page.c
/trunk/kernel/arch/ia64/include/mm/frame.h
/trunk/kernel/arch/ia64/src/mm/frame.c
/trunk/kernel/arch/ia64/src/mm/page.c
/trunk/kernel/arch/mips32/include/mm/frame.h
/trunk/kernel/arch/mips32/src/drivers/msim.c
/trunk/kernel/arch/mips32/src/mm/frame.c
/trunk/kernel/arch/mips32/src/mm/page.c
/trunk/kernel/arch/ppc32/include/mm/frame.h
/trunk/kernel/arch/ppc32/src/mm/frame.c
/trunk/kernel/arch/ppc32/src/mm/page.c
/trunk/kernel/arch/sparc64/include/mm/frame.h
/trunk/kernel/arch/sparc64/src/drivers/sgcn.c
/trunk/kernel/arch/sparc64/src/mm/frame.c
/trunk/kernel/arch/sparc64/src/mm/page.c
/trunk/kernel/genarch/src/drivers/ega/ega.c
/trunk/kernel/genarch/src/fb/fb.c
/trunk/kernel/generic/include/ddi/ddi.h
/trunk/kernel/generic/include/mm/page.h
/trunk/kernel/generic/src/adt/avl.c
/trunk/kernel/generic/src/console/cmd.c
/trunk/kernel/generic/src/console/console.c
/trunk/kernel/generic/src/ddi/ddi.c
/trunk/kernel/generic/src/lib/rd.c
/trunk/kernel/generic/src/proc/task.c
/trunk/kernel/generic/src/time/clock.c
/trunk/uspace/srv/fb/ega.c
/trunk/uspace/srv/fb/fb.c
/trunk/uspace/srv/fb/msim.c
/trunk/uspace/srv/fb/sgcn.c
/trunk/uspace/srv/kbd/arch/sparc64/src/sgcn.c
/trunk/uspace/srv/ns/ns.c
/trunk/uspace/srv/rd/rd.c
3906 5625 d 19 h jermar /trunk/kernel/ IRQ handlers are using one superfluous argument and an unused elipsis.
On the other hand, IRQ claim functions would need to be passed the instance
argument.
 
/trunk/kernel/arch/amd64/src/interrupt.c
/trunk/kernel/arch/arm32/src/drivers/gxemul.c
/trunk/kernel/arch/ia32/src/drivers/i8254.c
/trunk/kernel/arch/ia32/src/interrupt.c
/trunk/kernel/arch/ia32/src/smp/apic.c
/trunk/kernel/arch/ia64/src/drivers/it.c
/trunk/kernel/arch/ia64/src/interrupt.c
/trunk/kernel/arch/ia64/src/ski/ski.c
/trunk/kernel/arch/mips32/src/drivers/msim.c
/trunk/kernel/arch/mips32/src/drivers/serial.c
/trunk/kernel/arch/mips32/src/exception.c
/trunk/kernel/arch/mips32/src/interrupt.c
/trunk/kernel/arch/ppc32/src/drivers/cuda.c
/trunk/kernel/arch/ppc32/src/interrupt.c
/trunk/kernel/arch/sparc64/include/cpu_family.h
/trunk/kernel/arch/sparc64/include/cpu_node.h
/trunk/kernel/arch/sparc64/src/drivers/sgcn.c
/trunk/kernel/arch/sparc64/src/trap/interrupt.c
/trunk/kernel/genarch/include/kbd/ns16550.h
/trunk/kernel/genarch/include/kbd/z8530.h
/trunk/kernel/genarch/src/kbd/i8042.c
/trunk/kernel/genarch/src/kbd/ns16550.c
/trunk/kernel/genarch/src/kbd/z8530.c
/trunk/kernel/generic/include/ddi/irq.h
/trunk/kernel/generic/src/console/console.c
/trunk/kernel/generic/src/console/kconsole.c
/trunk/kernel/generic/src/ddi/irq.c
3902 5626 d 3 h jermar /trunk/kernel/ Introduce a more platform-neutral name for programmed I/O.

The new API looks like pio_read_n() or pio_write_n(), where n is 8, 16 or 32.
The old API (i.e. inb(), inw(), inl(), outb() outw(), outl()) may have made
some people think that the interface is only to be used with the separate I/O
space. That's not the case. This API is to be implemented on all platforms
so that we can finally have really generic kernel device drivers.
 
/trunk/kernel/arch/amd64/include/asm.h
/trunk/kernel/arch/arm32/include/asm.h
/trunk/kernel/arch/ia32/include/asm.h
/trunk/kernel/arch/ia32/include/drivers/i8042.h
/trunk/kernel/arch/ia32/src/drivers/i8254.c
/trunk/kernel/arch/ia32/src/drivers/i8259.c
/trunk/kernel/arch/ia32/src/smp/smp.c
/trunk/kernel/arch/ia64/include/asm.h
/trunk/kernel/arch/ia64/include/drivers/i8042.h
/trunk/kernel/arch/ia64/src/ia64.c
/trunk/kernel/arch/mips32/include/asm.h
/trunk/kernel/arch/ppc32/include/asm.h
/trunk/kernel/arch/sparc64/include/asm.h
/trunk/kernel/genarch/include/kbd/ns16550.h
/trunk/kernel/genarch/src/drivers/ega/ega.c
/trunk/kernel/generic/src/ipc/irq.c
3880 5628 d 22 h decky /trunk/kernel/arch/ simplify configuration
introduce arch_construct_function and inb/outb (sometimes empty) on all platforms
various code cleanup
 
/trunk/kernel/arch/sparc64/include/drivers/ns16550.h
/trunk/kernel/arch/amd64/src/amd64.c
/trunk/kernel/arch/amd64/src/debugger.c
/trunk/kernel/arch/amd64/src/interrupt.c
/trunk/kernel/arch/arm32/include/asm.h
/trunk/kernel/arch/arm32/src/arm32.c
/trunk/kernel/arch/ia32/_link.ld.in
/trunk/kernel/arch/ia32/include/fpu_context.h
/trunk/kernel/arch/ia32/src/ia32.c
/trunk/kernel/arch/ia64/include/asm.h
/trunk/kernel/arch/ia64/include/drivers/kbd.h
/trunk/kernel/arch/ia64/include/fpu_context.h
/trunk/kernel/arch/ia64/include/interrupt.h
/trunk/kernel/arch/ia64/src/ia64.c
/trunk/kernel/arch/ia64/src/interrupt.c
/trunk/kernel/arch/ia64/src/ski/ski.c
/trunk/kernel/arch/mips32/include/asm.h
/trunk/kernel/arch/mips32/include/context_offset.h
/trunk/kernel/arch/mips32/src/asm.S
/trunk/kernel/arch/mips32/src/drivers/msim.c
/trunk/kernel/arch/mips32/src/fpu_context.c
/trunk/kernel/arch/mips32/src/mips32.c
/trunk/kernel/arch/mips32/src/mm/frame.c
/trunk/kernel/arch/ppc32/include/asm.h
/trunk/kernel/arch/ppc32/src/ppc32.c
/trunk/kernel/arch/sparc64/_link.ld.in
/trunk/kernel/arch/sparc64/include/fpu_context.h
/trunk/kernel/arch/sparc64/src/sparc64.c
3878 5628 d 22 h decky /trunk/kernel/arch/ introduce fncptr_t and ioport_t on all platforms  
/trunk/kernel/arch/amd64/include/types.h
/trunk/kernel/arch/arm32/include/types.h
/trunk/kernel/arch/ia32/include/types.h
/trunk/kernel/arch/ia64/include/types.h
/trunk/kernel/arch/mips32/include/types.h
/trunk/kernel/arch/ppc32/include/types.h
/trunk/kernel/arch/sparc64/include/types.h
3779 5668 d 4 h jermar /trunk/kernel/ Only one kernel EGA driver to rule them all.  
/trunk/kernel/genarch/include/drivers
/trunk/kernel/genarch/include/drivers/ega
/trunk/kernel/genarch/include/drivers/ega/ega.h
/trunk/kernel/genarch/src/drivers
/trunk/kernel/genarch/src/drivers/ega
/trunk/kernel/genarch/src/drivers/ega/ega.c
/trunk/kernel/arch/ia32/src/drivers/ega.c
/trunk/kernel/arch/ia64/src/drivers/ega.c
/trunk/kernel/arch/amd64/Makefile.inc
/trunk/kernel/arch/amd64/include/types.h
/trunk/kernel/arch/amd64/src/amd64.c
/trunk/kernel/arch/ia32/Makefile.inc
/trunk/kernel/arch/ia32/include/types.h
/trunk/kernel/arch/ia32/src/ia32.c
/trunk/kernel/arch/ia64/Makefile.inc
/trunk/kernel/arch/ia64/include/asm.h
/trunk/kernel/arch/ia64/include/drivers/ega.h
/trunk/kernel/arch/ia64/include/types.h
/trunk/kernel/arch/ia64/src/asm.S
/trunk/kernel/arch/ia64/src/ia64.c
/trunk/kernel/arch/sparc64/include/types.h
/trunk/kernel/genarch/Makefile.inc
3740 5678 d 2 h jermar /trunk/kernel/arch/sparc64/ Fix typo.  
/trunk/kernel/arch/sparc64/include/drivers/scr.h
/trunk/kernel/arch/sparc64/src/console.c
/trunk/kernel/arch/sparc64/src/drivers/scr.c
3736 5679 d 4 h decky /trunk/kernel/arch/sparc64/ refresh kernel console during grab on sparc64  
/trunk/kernel/arch/sparc64/include/drivers/scr.h
/trunk/kernel/arch/sparc64/src/console.c
/trunk/kernel/arch/sparc64/src/drivers/scr.c
3722 5683 d 8 h rimsky /trunk/kernel/arch/sparc64/include/ SMC functions optimized for US3.  
/trunk/kernel/arch/sparc64/include/barrier.h
3672 5697 d 22 h jermar /trunk/ Merge sparc branch to trunk.  
/trunk/boot/arch/sparc64/silo/silo.patched.tar.gz
/trunk/contrib/util
/trunk/kernel/arch/sparc64/include/cpu_family.h
/trunk/kernel/arch/sparc64/include/cpu_node.h
/trunk/kernel/arch/sparc64/include/drivers/sgcn.h
/trunk/kernel/arch/sparc64/src/drivers/sgcn.c
/trunk/uspace/srv/fb/serial_console.c
/trunk/uspace/srv/fb/serial_console.h
/trunk/uspace/srv/fb/sgcn.c
/trunk/uspace/srv/fb/sgcn.h
/trunk/uspace/srv/kbd/arch/sparc64/include/sgcn.h
/trunk/uspace/srv/kbd/arch/sparc64/src/sgcn.c
/trunk/uspace/srv/kbd/genarch/include/nofb.h
/trunk/uspace/srv/kbd/genarch/src/nofb.c
/trunk/boot/arch/ppc64/Makefile.inc
/trunk/boot/arch/sparc64/Makefile.inc
/trunk/boot/arch/sparc64/loader/asm.S
/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/register.h
/trunk/boot/boot.config
/trunk/boot/genarch/balloc.h
/trunk/boot/genarch/ofw.c
/trunk/boot/genarch/ofw_tree.c
/trunk/kernel/arch/arm32/src/arm32.c
/trunk/kernel/arch/ia32/src/drivers/vesa.c
/trunk/kernel/arch/mips32/src/mips32.c
/trunk/kernel/arch/ppc32/src/ppc32.c
/trunk/kernel/arch/sparc64/Makefile.inc
/trunk/kernel/arch/sparc64/include/arch.h
/trunk/kernel/arch/sparc64/include/asm.h
/trunk/kernel/arch/sparc64/include/cpu.h
/trunk/kernel/arch/sparc64/include/drivers/kbd.h
/trunk/kernel/arch/sparc64/include/drivers/scr.h
/trunk/kernel/arch/sparc64/include/mm/cache.h
/trunk/kernel/arch/sparc64/include/mm/cache_spec.h
/trunk/kernel/arch/sparc64/include/mm/frame.h
/trunk/kernel/arch/sparc64/include/mm/mmu.h
/trunk/kernel/arch/sparc64/include/mm/tlb.h
/trunk/kernel/arch/sparc64/include/mm/tsb.h
/trunk/kernel/arch/sparc64/include/mm/tte.h
/trunk/kernel/arch/sparc64/include/regdef.h
/trunk/kernel/arch/sparc64/include/register.h
/trunk/kernel/arch/sparc64/include/trap/interrupt.h
/trunk/kernel/arch/sparc64/src/console.c
/trunk/kernel/arch/sparc64/src/cpu/cpu.c
/trunk/kernel/arch/sparc64/src/ddi/ddi.c
/trunk/kernel/arch/sparc64/src/drivers/scr.c
/trunk/kernel/arch/sparc64/src/drivers/tick.c
/trunk/kernel/arch/sparc64/src/mm/as.c
/trunk/kernel/arch/sparc64/src/mm/cache.S
/trunk/kernel/arch/sparc64/src/mm/page.c
/trunk/kernel/arch/sparc64/src/mm/tlb.c
/trunk/kernel/arch/sparc64/src/mm/tsb.c
/trunk/kernel/arch/sparc64/src/smp/ipi.c
/trunk/kernel/arch/sparc64/src/smp/smp.c
/trunk/kernel/arch/sparc64/src/sparc64.c
/trunk/kernel/arch/sparc64/src/start.S
/trunk/kernel/arch/sparc64/src/trap/interrupt.c
/trunk/kernel/genarch/include/fb/fb.h
/trunk/kernel/genarch/include/fb/visuals.h
/trunk/kernel/genarch/include/ofw/ofw_tree.h
/trunk/kernel/genarch/src/fb/fb.c
/trunk/kernel/genarch/src/ofw/ofw_tree.c
/trunk/kernel/kernel.config
/trunk/uspace/srv/console/console.c
/trunk/uspace/srv/fb/Makefile
/trunk/uspace/srv/fb/main.c
/trunk/uspace/srv/fb/msim.c
/trunk/uspace/srv/kbd/Makefile
/trunk/uspace/srv/kbd/arch/mips32/src/kbd.c
/trunk/uspace/srv/kbd/arch/sparc64/src/kbd.c
3655 5703 d 22 h jermar /trunk/kernel/ Add additional members to the irq_t structure so that an interrupt-driven driver
does not need to know how to clear the level interrupt. The z8530 was modified
in this way and is much more generic. The ns16550 driver has also been modified,
but awaits testing. The sparc64 interrupt mapping and dispatch code is now using
the new info and calls the clear-interrupt-routine itself.
 
/trunk/kernel/arch/sparc64/include/drivers/fhc.h
/trunk/kernel/arch/sparc64/include/drivers/pci.h
/trunk/kernel/arch/sparc64/src/drivers/fhc.c
/trunk/kernel/arch/sparc64/src/drivers/kbd.c
/trunk/kernel/arch/sparc64/src/drivers/pci.c
/trunk/kernel/arch/sparc64/src/trap/interrupt.c
/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/ns16550.c
/trunk/kernel/genarch/src/kbd/z8530.c
/trunk/kernel/genarch/src/ofw/ebus.c
/trunk/kernel/genarch/src/ofw/fhc.c
/trunk/kernel/genarch/src/ofw/pci.c
/trunk/kernel/generic/include/ddi/irq.h
/trunk/kernel/generic/src/ddi/irq.c
3654 5704 d 0 h jermar /trunk/kernel/arch/sparc64/ After my effort yesterday, there are two rival psycho drivers.
Merge the two and remove the newer one.
 
/trunk/kernel/arch/sparc64/include/drivers/psycho.h
/trunk/kernel/arch/sparc64/src/drivers/psycho.c
/trunk/kernel/arch/sparc64/Makefile.inc
/trunk/kernel/arch/sparc64/src/drivers/pci.c
3647 5704 d 21 h jermar /trunk/kernel/arch/sparc64/ Improvized Psycho driver.  
/trunk/kernel/arch/sparc64/include/drivers/psycho.h
/trunk/kernel/arch/sparc64/src/drivers/psycho.c
/trunk/kernel/arch/sparc64/Makefile.inc
3580 5721 d 20 h jermar /trunk/kernel/arch/sparc64/include/ Accesses to memory mapped registers should use volatile pointers so that
the compiler doesn't even think of trying to be clever. Add memory barriers
and fixed cstyle.
 
/trunk/kernel/arch/sparc64/include/asm.h
/trunk/kernel/arch/sparc64/include/types.h
3577 5722 d 11 h vana /trunk/kernel/ Support for serial port console on IA64 as a compensation for keyboard - based on SPARC ns16550 driver  
/trunk/kernel/arch/ia64/include/asm.h
/trunk/kernel/arch/sparc64/include/asm.h
/trunk/kernel/arch/sparc64/include/drivers/ns16550.h
/trunk/kernel/arch/sparc64/src/drivers/kbd.c
/trunk/kernel/genarch/include/kbd/ns16550.h
/trunk/kernel/genarch/src/kbd/key.c
/trunk/kernel/genarch/src/kbd/ns16550.c
/trunk/kernel/kernel.config
3482 5761 d 22 h jermar /trunk/kernel/arch/sparc64/ Do not allocate full page for the uspace window buffer.
Instead, allocate only the bare minimum to fit NWINDOWS - 1
uspace windows and to satisfy alignment requirements.
 
/trunk/kernel/arch/sparc64/include/trap/regwin.h
/trunk/kernel/arch/sparc64/src/proc/thread.c
/trunk/kernel/arch/sparc64/src/trap/trap_table.S
3463 5774 d 3 h jermar /trunk/kernel/arch/sparc64/ Populate all sparc64 trap table slots belonging to trap_instruction_n.  
/trunk/kernel/arch/sparc64/include/trap/syscall.h
/trunk/kernel/arch/sparc64/src/trap/trap_table.S
3379 5794 d 9 h jermar /trunk/kernel/arch/sparc64/include/ Add the missing preemption_disable() call to sparc64 atomic_lock_arch().
Thanks to Pavel Rimsky for noticing this.
 
/trunk/kernel/arch/sparc64/include/atomic.h
3233 5829 d 3 h decky /trunk/ remove dummy page coloring facility, which is currenty not used  
/trunk/kernel/arch/amd64/include/mm/page.h
/trunk/kernel/arch/arm32/include/mm/page.h
/trunk/kernel/arch/ia32/include/mm/page.h
/trunk/kernel/arch/ia32xen/include/mm/page.h
/trunk/kernel/arch/ia64/include/mm/page.h
/trunk/kernel/arch/mips32/include/mm/page.h
/trunk/kernel/arch/ppc32/include/mm/page.h
/trunk/kernel/arch/ppc64/include/mm/page.h
/trunk/kernel/arch/sparc64/include/mm/page.h
/trunk/kernel/generic/include/mm/page.h
/trunk/uspace/lib/libc/arch/amd64/include/config.h
/trunk/uspace/lib/libc/arch/arm32/include/config.h
/trunk/uspace/lib/libc/arch/ia32/include/config.h
/trunk/uspace/lib/libc/arch/ia64/include/config.h
/trunk/uspace/lib/libc/arch/mips32/include/config.h
/trunk/uspace/lib/libc/arch/ppc32/include/config.h
/trunk/uspace/lib/libc/arch/ppc64/include/config.h
/trunk/uspace/lib/libc/arch/sparc64/include/config.h
3145 5871 d 10 h jermar /trunk/kernel/arch/sparc64/include/ On sparc64, when the operand to the FLUSH instruction doesn't matter, the
instruction's semantics is to flush the pipeline.
 
/trunk/kernel/arch/sparc64/include/barrier.h
/trunk/kernel/arch/sparc64/include/mm/tlb.h
3134 5872 d 8 h jermar /trunk/kernel/arch/ Add smc_coherence_block().  
/trunk/kernel/arch/arm32/include/barrier.h
/trunk/kernel/arch/ia32/include/barrier.h
/trunk/kernel/arch/ia64/include/barrier.h
/trunk/kernel/arch/mips32/include/barrier.h
/trunk/kernel/arch/ppc32/include/barrier.h
/trunk/kernel/arch/ppc64/include/barrier.h
/trunk/kernel/arch/sparc64/include/barrier.h
3133 5872 d 22 h jermar /trunk/kernel/arch/ Add smc_coherence() macro to all architectures.
So far, only amd64, ia32, ia64 and sparc64 are implemented.
 
/trunk/kernel/arch/sparc64/include/mm/cache_spec.h
/trunk/kernel/arch/arm32/include/barrier.h
/trunk/kernel/arch/ia32/include/barrier.h
/trunk/kernel/arch/ia64/include/barrier.h
/trunk/kernel/arch/mips32/include/barrier.h
/trunk/kernel/arch/ppc32/include/barrier.h
/trunk/kernel/arch/ppc64/include/barrier.h
/trunk/kernel/arch/sparc64/include/barrier.h
/trunk/kernel/arch/sparc64/include/mm/tlb.h
/trunk/kernel/arch/sparc64/src/mm/cache.S
3104 5880 d 11 h svoboda /trunk/kernel/ Declare arguments for memstr.h operations as pointers instead of uintptr_t.  
/trunk/kernel/Makefile
/trunk/kernel/arch/amd64/include/memstr.h
/trunk/kernel/arch/amd64/src/pm.c
/trunk/kernel/arch/arm32/include/memstr.h
/trunk/kernel/arch/ia32/include/memstr.h
/trunk/kernel/arch/ia32/src/drivers/ega.c
/trunk/kernel/arch/ia32/src/pm.c
/trunk/kernel/arch/ia32/src/smp/smp.c
/trunk/kernel/arch/ia32xen/src/ia32xen.c
/trunk/kernel/arch/ia32xen/src/pm.c
/trunk/kernel/arch/ia32xen/src/smp/smp.c
/trunk/kernel/arch/ia64/include/memstr.h
/trunk/kernel/arch/ia64/src/drivers/ega.c
/trunk/kernel/arch/ia64/src/mm/vhpt.c
/trunk/kernel/arch/mips32/include/memstr.h
/trunk/kernel/arch/ppc32/include/memstr.h
/trunk/kernel/arch/ppc64/include/memstr.h
/trunk/kernel/arch/ppc64/src/mm/page.c
/trunk/kernel/arch/sparc64/include/memstr.h
/trunk/kernel/arch/sparc64/src/mm/as.c
/trunk/kernel/genarch/src/mm/as_pt.c
/trunk/kernel/genarch/src/mm/page_pt.c
/trunk/kernel/generic/include/memstr.h
/trunk/kernel/generic/src/adt/hash_table.c
/trunk/kernel/generic/src/cpu/cpu.c
/trunk/kernel/generic/src/ipc/ipc.c
/trunk/kernel/generic/src/lib/memstr.c
/trunk/kernel/generic/src/lib/objc_ext.c
/trunk/kernel/generic/src/mm/as.c
/trunk/kernel/generic/src/mm/backend_anon.c
/trunk/kernel/generic/src/mm/backend_elf.c
/trunk/kernel/generic/src/mm/slab.c
/trunk/kernel/generic/src/proc/thread.c
/trunk/kernel/test/mm/falloc2.c
/trunk/kernel/test/mm/slab1.c
/trunk/kernel/test/mm/slab2.c
3071 5883 d 3 h decky /trunk/kernel/ reflect changes in generic code
proper formatting directives
coding style
 
/trunk/kernel/arch/amd64/src/debugger.c
/trunk/kernel/arch/amd64/src/proc/thread.c
/trunk/kernel/arch/ia32/include/mm/page.h
/trunk/kernel/arch/ia32/include/smp/apic.h
/trunk/kernel/arch/ia32/src/debug/panic.s
/trunk/kernel/arch/ia32xen/src/smp/smp.c
/trunk/kernel/arch/mips32/src/debugger.c
/trunk/kernel/arch/mips32/src/exception.c
/trunk/kernel/arch/ppc32/include/boot/boot.h
/trunk/kernel/arch/ppc32/include/drivers/cuda.h
/trunk/kernel/arch/ppc32/include/exception.h
/trunk/kernel/arch/ppc32/include/mm/tlb.h
/trunk/kernel/arch/ppc32/src/interrupt.c
/trunk/kernel/arch/ppc32/src/mm/page.c
/trunk/kernel/arch/ppc64/include/exception.h
/trunk/kernel/arch/ppc64/src/cpu/cpu.c
/trunk/kernel/arch/ppc64/src/interrupt.c
/trunk/kernel/arch/ppc64/src/mm/page.c
/trunk/kernel/arch/sparc64/include/asm.h
/trunk/kernel/arch/sparc64/include/cpu.h
/trunk/kernel/arch/sparc64/src/cpu/cpu.c
/trunk/kernel/arch/sparc64/src/smp/smp.c
/trunk/kernel/arch/sparc64/src/trap/exception.c
/trunk/kernel/arch/sparc64/src/trap/interrupt.c
/trunk/kernel/genarch/include/ofw/ofw_tree.h
/trunk/kernel/genarch/src/acpi/acpi.c
/trunk/kernel/genarch/src/acpi/madt.c
3070 5883 d 3 h decky /trunk/kernel/arch/ introduce portable formatting directives
remove common types
 
/trunk/kernel/arch/amd64/include/types.h
/trunk/kernel/arch/arm32/include/types.h
/trunk/kernel/arch/ia32/include/types.h
/trunk/kernel/arch/ia32xen/include/types.h
/trunk/kernel/arch/ia64/include/types.h
/trunk/kernel/arch/mips32/include/types.h
/trunk/kernel/arch/ppc32/include/types.h
/trunk/kernel/arch/ppc64/include/types.h
/trunk/kernel/arch/sparc64/include/types.h
2860 5931 d 22 h cejka /trunk/ Context handling unified for sparc64.  
/trunk/uspace/lib/libc/arch/sparc64/include/context_offset.h
/trunk/kernel/arch/sparc64/include/context_offset.h
/trunk/kernel/arch/sparc64/src/context.S
/trunk/uspace/lib/libc/arch/sparc64/src/fibril.S
2797 5943 d 22 h jermar /trunk/kernel/ Each architecture should only announce its endianity.
The conversion macros should be defined only once.
 
/trunk/kernel/arch/amd64/include/byteorder.h
/trunk/kernel/arch/arm32/include/byteorder.h
/trunk/kernel/arch/ia32/include/byteorder.h
/trunk/kernel/arch/ia64/include/byteorder.h
/trunk/kernel/arch/mips32/include/byteorder.h
/trunk/kernel/arch/mips32/src/drivers/arc.c
/trunk/kernel/arch/ppc32/include/byteorder.h
/trunk/kernel/arch/ppc64/include/byteorder.h
/trunk/kernel/arch/sparc64/include/byteorder.h
/trunk/kernel/generic/include/byteorder.h
/trunk/kernel/generic/src/debug/symtab.c
/trunk/kernel/generic/src/lib/rd.c
2794 5944 d 22 h jermar /trunk/kernel/ Add macros for byte swapping of uint16_t's.  
/trunk/kernel/arch/amd64/include/byteorder.h
/trunk/kernel/arch/arm32/include/byteorder.h
/trunk/kernel/arch/ia32/include/byteorder.h
/trunk/kernel/arch/ia64/include/byteorder.h
/trunk/kernel/arch/mips32/include/byteorder.h
/trunk/kernel/arch/ppc32/include/byteorder.h
/trunk/kernel/arch/ppc64/include/byteorder.h
/trunk/kernel/arch/sparc64/include/byteorder.h
/trunk/kernel/generic/include/byteorder.h
2725 6001 d 4 h decky /trunk/kernel/ remove config.memory_size, get_memory_size() and memory_init.{c|d}
the amount of available memory can be calculated from the sizes of the zones
add FRAMES2SIZE, SIZE2KB and SIZE2MB functions/macros (code readability)
 
/trunk/kernel/arch/amd64/src/boot/memmap.c
/trunk/kernel/arch/ia32/src/boot/memmap.c
/trunk/kernel/arch/amd64/include/mm/memory_init.h
/trunk/kernel/arch/amd64/src/mm/memory_init.c
/trunk/kernel/arch/arm32/include/mm/memory_init.h
/trunk/kernel/arch/arm32/src/mm/memory_init.c
/trunk/kernel/arch/ia32/include/mm/memory_init.h
/trunk/kernel/arch/ia32/src/mm/memory_init.c
/trunk/kernel/arch/ia32xen/include/mm/memory_init.h
/trunk/kernel/arch/ia32xen/src/mm/memory_init.c
/trunk/kernel/arch/ia64/include/mm/memory_init.h
/trunk/kernel/arch/mips32/include/mm/memory_init.h
/trunk/kernel/arch/ppc32/include/mm/memory_init.h
/trunk/kernel/arch/ppc32/src/mm/memory_init.c
/trunk/kernel/arch/ppc64/include/mm/memory_init.h
/trunk/kernel/arch/ppc64/src/mm/memory_init.c
/trunk/kernel/arch/sparc64/include/mm/memory_init.h
/trunk/kernel/arch/sparc64/src/mm/memory_init.c
/trunk/kernel/arch/amd64/Makefile.inc
/trunk/kernel/arch/amd64/src/amd64.c
/trunk/kernel/arch/amd64/src/boot/boot.S
/trunk/kernel/arch/arm32/Makefile.inc
/trunk/kernel/arch/arm32/src/mm/frame.c
/trunk/kernel/arch/ia32/Makefile.inc
/trunk/kernel/arch/ia32/include/boot/memmap.h
/trunk/kernel/arch/ia32/src/boot/boot.S
/trunk/kernel/arch/ia32/src/ia32.c
/trunk/kernel/arch/ia32xen/Makefile.inc
/trunk/kernel/arch/ia32xen/src/ia32xen.c
/trunk/kernel/arch/ia64/src/mm/frame.c
/trunk/kernel/arch/mips32/src/drivers/arc.c
/trunk/kernel/arch/mips32/src/mm/frame.c
/trunk/kernel/arch/ppc32/Makefile.inc
/trunk/kernel/arch/ppc32/src/mm/frame.c
/trunk/kernel/arch/ppc32/src/ppc32.c
/trunk/kernel/arch/ppc64/Makefile.inc
/trunk/kernel/arch/ppc64/src/mm/frame.c
/trunk/kernel/arch/ppc64/src/ppc64.c
/trunk/kernel/arch/sparc64/Makefile.inc
/trunk/kernel/generic/include/config.h
/trunk/kernel/generic/include/macros.h
/trunk/kernel/generic/include/mm/frame.h
/trunk/kernel/generic/src/main/main.c
/trunk/kernel/generic/src/mm/frame.c
2721 6002 d 4 h decky /trunk/kernel/ convert e820list to a generic physmem command  
/trunk/kernel/arch/amd64/include/mm/frame.h
/trunk/kernel/arch/arm32/include/mm/frame.h
/trunk/kernel/arch/ia32/include/mm/frame.h
/trunk/kernel/arch/ia32/src/mm/frame.c
/trunk/kernel/arch/ia32xen/include/mm/frame.h
/trunk/kernel/arch/ia64/include/mm/frame.h
/trunk/kernel/arch/mips32/include/mm/frame.h
/trunk/kernel/arch/ppc32/include/mm/frame.h
/trunk/kernel/arch/ppc64/include/mm/frame.h
/trunk/kernel/arch/sparc64/include/mm/frame.h
/trunk/kernel/generic/src/console/cmd.c
/trunk/kernel/generic/src/interrupt/interrupt.c
2610 6083 d 2 h jermar /trunk/ Support for six syscall arguments for sparc64.
There is a minor stability issue which needs to be fixed (kernel panics upon entering kconsole from the
console task).
 
/trunk/kernel/arch/sparc64/include/syscall.h
/trunk/kernel/arch/sparc64/src/trap/syscall.c
/trunk/kernel/arch/sparc64/Makefile.inc
/trunk/kernel/arch/sparc64/include/stack.h
/trunk/kernel/arch/sparc64/include/trap/syscall.h
/trunk/kernel/arch/sparc64/include/trap/trap_table.h
/trunk/kernel/arch/sparc64/src/trap/trap_table.S
/trunk/uspace/lib/libc/arch/sparc64/include/syscall.h
2510 6154 d 22 h jermar /trunk/kernel/ Experimental support for the cgsix framebuffer, which is found on old Ultra 1
worksations, and the SBUS bus and devices. Not tested.
 
/trunk/kernel/genarch/src/ofw/sbus.c
/trunk/kernel/arch/sparc64/include/drivers/scr.h
/trunk/kernel/arch/sparc64/src/drivers/scr.c
/trunk/kernel/genarch/Makefile.inc
/trunk/kernel/genarch/include/ofw/ofw_tree.h
2272 6294 d 0 h jermar /trunk/kernel/ Indentation and formatting fixes.  
/trunk/kernel/arch/sparc64/include/barrier.h
/trunk/kernel/arch/sparc64/src/cpu/cpu.c
/trunk/kernel/arch/sparc64/src/mm/as.c
/trunk/kernel/arch/sparc64/src/proc/scheduler.c
/trunk/kernel/arch/sparc64/src/proc/thread.c
/trunk/kernel/arch/sparc64/src/smp/ipi.c
/trunk/kernel/arch/sparc64/src/smp/smp.c
/trunk/kernel/generic/src/lib/memstr.c
2231 6304 d 2 h jermar /trunk/kernel/arch/sparc64/ Fix a nasty bug in the TLB miss handlers on sparc64.
After we no longer lock the kernel stack in the DTLB,
there is a real danger of nested DTLB misses. The nested
miss can very easily clobber the DTLB Tag Access register.
Therefore, the original miss may not read this register, but
it has to receive its value as an argument. The argument
value is saved in the trap table when it is guaranteed that
the nested TLB miss will not occur.
 
/trunk/kernel/arch/sparc64/include/mm/tlb.h
/trunk/kernel/arch/sparc64/include/trap/mmu.h
/trunk/kernel/arch/sparc64/src/mm/tlb.c
2216 6305 d 22 h decky /trunk/ make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls
 
/trunk/kernel/arch/amd64/include/types.h
/trunk/kernel/arch/arm32/include/types.h
/trunk/kernel/arch/ia32/include/types.h
/trunk/kernel/arch/ia32xen/include/types.h
/trunk/kernel/arch/ia64/include/types.h
/trunk/kernel/arch/mips32/include/types.h
/trunk/kernel/arch/ppc32/include/types.h
/trunk/kernel/arch/ppc64/include/types.h
/trunk/kernel/arch/sparc64/include/types.h
/trunk/kernel/generic/include/interrupt.h
/trunk/kernel/generic/include/proc/task.h
/trunk/kernel/generic/include/proc/thread.h
/trunk/kernel/generic/src/adt/btree.c
/trunk/kernel/generic/src/console/cmd.c
/trunk/kernel/generic/src/ipc/ipc.c
/trunk/kernel/generic/src/proc/scheduler.c
/trunk/kernel/generic/src/proc/task.c
/trunk/kernel/generic/src/proc/thread.c
/trunk/kernel/generic/src/syscall/syscall.c
/trunk/kernel/test/fpu/fpu1.c
/trunk/kernel/test/fpu/mips2.c
/trunk/kernel/test/fpu/sse1.c
/trunk/kernel/test/mm/falloc2.c
/trunk/kernel/test/mm/slab1.c
/trunk/kernel/test/mm/slab2.c
/trunk/kernel/test/synch/rwlock3.c
/trunk/kernel/test/synch/rwlock4.c
/trunk/kernel/test/synch/semaphore2.c
/trunk/kernel/test/thread/thread1.c
/trunk/uspace/libc/generic/thread.c
/trunk/uspace/libc/include/thread.h
/trunk/uspace/tester/thread/thread1.c
2143 6316 d 3 h jermar /trunk/kernel/arch/sparc64/include/ Remove unneeded enum member.  
/trunk/kernel/arch/sparc64/include/interrupt.h
2141 6316 d 19 h jermar /trunk/ The Ultimate Solution To Illegal Virtual Aliases.
It is better to avoid them completely than to fight them.
Switch the sparc64 port to 16K pages. The TLBs and TSBs
continue to operate with 8K pages only. Page tables and
other generic parts operate with 16K pages.

Because the MMU doesn't support 16K directly, each 16K
page is emulated by a pair of 8K pages. With 16K pages,
illegal aliases cannot be created in 16K D-cache.
 
/trunk/kernel/arch/sparc64/src/mm/cache.S
/trunk/kernel/arch/sparc64/src/mm/cache.c
/trunk/kernel/arch/sparc64/src/mm/cache_asm.S
/trunk/boot/arch/sparc64/loader/asm.h
/trunk/kernel/arch/sparc64/Makefile.inc
/trunk/kernel/arch/sparc64/include/cpu.h
/trunk/kernel/arch/sparc64/include/mm/as.h
/trunk/kernel/arch/sparc64/include/mm/cache.h
/trunk/kernel/arch/sparc64/include/mm/frame.h
/trunk/kernel/arch/sparc64/include/mm/page.h
/trunk/kernel/arch/sparc64/include/mm/tsb.h
/trunk/kernel/arch/sparc64/include/stack.h
/trunk/kernel/arch/sparc64/src/cpu/cpu.c
/trunk/kernel/arch/sparc64/src/mm/as.c
/trunk/kernel/arch/sparc64/src/mm/page.c
/trunk/kernel/arch/sparc64/src/mm/tlb.c
/trunk/kernel/arch/sparc64/src/mm/tsb.c
/trunk/kernel/arch/sparc64/src/smp/ipi.c
/trunk/kernel/arch/sparc64/src/trap/interrupt.c
/trunk/kernel/genarch/src/fb/fb.c
/trunk/kernel/genarch/src/mm/page_ht.c
/trunk/kernel/generic/src/console/klog.c
/trunk/kernel/generic/src/ddi/ddi.c
/trunk/kernel/generic/src/lib/rd.c
/trunk/kernel/generic/src/mm/as.c
/trunk/kernel/generic/src/mm/backend_anon.c
/trunk/kernel/generic/src/mm/backend_elf.c
/trunk/kernel/generic/src/time/clock.c
/trunk/uspace/fb/ega.c
/trunk/uspace/fb/fb.c
/trunk/uspace/fb/main.c
/trunk/uspace/klog/klog.c
/trunk/uspace/libc/arch/sparc64/_link.ld.in
/trunk/uspace/libc/arch/sparc64/include/config.h
/trunk/uspace/libc/arch/sparc64/include/stack.h
/trunk/uspace/libc/generic/as.c
/trunk/uspace/libc/generic/mman.c
/trunk/uspace/libc/generic/time.c
/trunk/uspace/libc/include/as.h
/trunk/uspace/ns/ns.c
/trunk/uspace/rd/rd.c
2134 6317 d 23 h jermar /trunk/kernel/ Reworked handling of illegal virtual aliases caused by frame reuse.
We moved the incomplete handling from backend's frame method to
backend's page_fault method. The page_fault method is the one that
can create an illegal alias if it writes the userspace frame using
kernel address with a different page color than the page to which is
this frame mapped in userspace. When we detect this, we do D-cache
shootdown on all processors (!!!).

If we add code that accesses userspace memory from kernel address
space, we will have to check for illegal virtual aliases at all such
places.

I tested this on a 4-way simulated E6500 and a real-world Ultra 5,
which has unfortunatelly only one processor.

This solves ticket #26.
 
/trunk/kernel/arch/sparc64/include/cpu.h
/trunk/kernel/arch/sparc64/include/interrupt.h
/trunk/kernel/arch/sparc64/include/mm/cache.h
/trunk/kernel/arch/sparc64/src/cpu/cpu.c
/trunk/kernel/arch/sparc64/src/mm/cache.c
/trunk/kernel/arch/sparc64/src/mm/tlb.c
/trunk/kernel/arch/sparc64/src/smp/ipi.c
/trunk/kernel/arch/sparc64/src/trap/interrupt.c
/trunk/kernel/generic/src/mm/backend_anon.c
/trunk/kernel/generic/src/mm/backend_elf.c