Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
3972 |
5655 d 23 h |
decky |
/trunk/kernel/ |
kernel memory management revisited (phase 1): proper support for zone flags
- the zone_t structures are now statically allocated to be easily available
- the locking scheme was simplified
- new flags for non-available zones were introduced
- FRAME_LOW_4_GiB flag is removed, the functionality will be eventually reimplemented using a generic mechanism |
|
/trunk/kernel/arch/ia32/src/mm/frame.c /trunk/kernel/arch/ia32/src/smp/smp.c /trunk/kernel/generic/include/mm/buddy.h /trunk/kernel/generic/include/mm/frame.h /trunk/kernel/generic/include/mm/slab.h /trunk/kernel/generic/src/mm/buddy.c /trunk/kernel/generic/src/mm/frame.c /trunk/kernel/generic/src/mm/slab.c
|
3964 |
5658 d 9 h |
decky |
/trunk/kernel/ |
switch between the preference of kernel/uspace IRQ hash table |
|
/trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/generic/include/console/console.h /trunk/kernel/generic/src/console/console.c /trunk/kernel/generic/src/ddi/irq.c /trunk/kernel/generic/src/ipc/irq.c
|
3963 |
5660 d 6 h |
jermar |
/trunk/kernel/ |
The kernel i8042 driver should be instance-neutral. |
|
/trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/genarch/include/kbd/i8042.h /trunk/kernel/genarch/src/kbd/i8042.c
|
3947 |
5661 d 5 h |
jermar |
/trunk/ |
This is the evil commit. In particular, it does:
- introduces more powerful pseudo code for userspace IRQ top-half handlers
- changes the internals of IRQ dispatching
- simplifies the kernel's i8042 driver
- adapts the uspace i8042 driver to make use of the new pseudocode
- breaks all other architectures except ia32
- breaks almost all existing drivers
- breaks switching between uspace and kernel drivers |
|
/trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/genarch/src/kbd/i8042.c /trunk/kernel/generic/include/ddi/irq.h /trunk/kernel/generic/include/ipc/irq.h /trunk/kernel/generic/src/ddi/irq.c /trunk/kernel/generic/src/ipc/irq.c /trunk/uspace/srv/kbd/port/i8042.c
|
3941 |
5662 d 1 h |
jermar |
/trunk/kernel/ |
Let IRQ claim methods take irq_t * instead of the instance argument. |
|
/trunk/kernel/arch/arm32/src/drivers/gxemul.c /trunk/kernel/arch/ia32/src/drivers/i8254.c /trunk/kernel/arch/ia32/src/smp/apic.c /trunk/kernel/arch/ia64/src/drivers/it.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/interrupt.c /trunk/kernel/arch/ppc32/src/drivers/cuda.c /trunk/kernel/arch/sparc64/src/drivers/sgcn.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
|
3940 |
5662 d 5 h |
decky |
/trunk/kernel/ |
make hw_area API more generic
this allows mapping of EGA VRAM on ia32/amd64 |
|
/trunk/kernel/arch/amd64/include/mm/tlb.h /trunk/kernel/arch/amd64/src/mm/page.c /trunk/kernel/arch/arm32/include/mm/tlb.h /trunk/kernel/arch/arm32/src/mm/page.c /trunk/kernel/arch/arm32/src/mm/tlb.c /trunk/kernel/arch/ia32/include/mm/tlb.h /trunk/kernel/arch/ia32/src/mm/page.c /trunk/kernel/arch/ia32/src/mm/tlb.c /trunk/kernel/arch/ia64/include/mm/tlb.h /trunk/kernel/arch/ia64/src/mm/page.c /trunk/kernel/arch/ia64/src/mm/tlb.c /trunk/kernel/arch/mips32/src/mm/page.c /trunk/kernel/arch/ppc32/src/mm/page.c /trunk/kernel/arch/sparc64/src/mm/page.c /trunk/kernel/genarch/include/drivers/ega/ega.h /trunk/kernel/genarch/include/drivers/legacy/ia32/io.h /trunk/kernel/genarch/src/drivers/ega/ega.c /trunk/kernel/generic/include/mm/page.h /trunk/kernel/generic/src/ddi/ddi.c
|
3932 |
5663 d 0 h |
jermar |
/trunk/kernel/ |
Kill arch/drivers/ega.h. Provide one-stop shopping
place for architectures with ia32 legacy I/O space. |
|
/trunk/kernel/genarch/include/drivers/legacy /trunk/kernel/genarch/include/drivers/legacy/ia32 /trunk/kernel/genarch/include/drivers/legacy/ia32/io.h
/trunk/kernel/arch/ia32/include/drivers/ega.h /trunk/kernel/arch/ia64/include/drivers/ega.h
/trunk/kernel/arch/amd64/src/amd64.c /trunk/kernel/arch/ia32/src/ia32.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/genarch/src/kbd/i8042.c
|
3930 |
5663 d 0 h |
jermar |
/trunk/kernel/ |
Adapt most of the kernel to ioport8_t, ioport16_t and ioport32_t types. |
|
/trunk/kernel/arch/ia32/include/drivers/ega.h /trunk/kernel/arch/ia32/include/drivers/i8259.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/drivers/ega.h /trunk/kernel/genarch/include/drivers/ega/ega.h /trunk/kernel/genarch/src/drivers/ega/ega.c /trunk/kernel/generic/src/ipc/irq.c
|
3908 |
5666 d 3 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 |
5666 d 23 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 |
5667 d 7 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
|
3892 |
5668 d 1 h |
jermar |
/trunk/ |
Get rid of CONFIG_DEBUG_AS_WATCHPOINT. |
|
/trunk/HelenOS.config /trunk/kernel/arch/amd64/src/debugger.c /trunk/kernel/arch/amd64/src/proc/scheduler.c /trunk/kernel/arch/ia32/src/proc/scheduler.c
|
3891 |
5668 d 1 h |
jermar |
/trunk/ |
Get rid of CONFIG_SIMICS_FIX. |
|
/trunk/HelenOS.config /trunk/kernel/arch/ia32/src/mm/frame.c
|
3890 |
5668 d 2 h |
jermar |
/trunk/ |
Get rid of CONFIG_DEBUG_ALLREGS. |
|
/trunk/HelenOS.config /trunk/kernel/arch/amd64/include/interrupt.h /trunk/kernel/arch/amd64/src/asm_utils.S /trunk/kernel/arch/amd64/src/interrupt.c /trunk/kernel/arch/ia32/include/interrupt.h /trunk/kernel/arch/ia32/src/asm.S /trunk/kernel/arch/ia32/src/interrupt.c /trunk/kernel/arch/mips32/include/context_offset.h /trunk/kernel/arch/mips32/include/exception.h /trunk/kernel/arch/mips32/src/start.S
|
3880 |
5670 d 2 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
|
3802 |
5694 d 7 h |
decky |
/trunk/kernel/arch/ |
fallback to VGA registers if VESA routine fails |
|
/trunk/kernel/arch/amd64/src/boot/boot.S /trunk/kernel/arch/ia32/src/boot/boot.S
|
3790 |
5705 d 10 h |
svoboda |
/trunk/kernel/ |
Make newlines in panic messages consistent. Add periods at end of messages so that it is obvious whether they are printed entirely. |
|
/trunk/kernel/arch/amd64/src/interrupt.c /trunk/kernel/arch/amd64/src/mm/page.c /trunk/kernel/arch/amd64/src/pm.c /trunk/kernel/arch/arm32/src/mm/page.c /trunk/kernel/arch/arm32/src/mm/page_fault.c /trunk/kernel/arch/ia32/src/drivers/vesa.c /trunk/kernel/arch/ia32/src/interrupt.c /trunk/kernel/arch/ia32/src/mm/page.c /trunk/kernel/arch/ia32/src/pm.c /trunk/kernel/arch/ia32/src/smp/smp.c /trunk/kernel/arch/ia32xen/src/interrupt.c /trunk/kernel/arch/ia32xen/src/mm/page.c /trunk/kernel/arch/ia32xen/src/pm.c /trunk/kernel/arch/ia32xen/src/smp/smp.c /trunk/kernel/arch/ia64/src/ia64.c /trunk/kernel/arch/ia64/src/interrupt.c /trunk/kernel/arch/ia64/src/mm/tlb.c /trunk/kernel/arch/mips32/src/cache.c /trunk/kernel/arch/mips32/src/debugger.c /trunk/kernel/arch/mips32/src/exception.c /trunk/kernel/arch/mips32/src/mm/tlb.c /trunk/kernel/arch/ppc32/src/mm/page.c /trunk/kernel/arch/ppc32/src/mm/tlb.c /trunk/kernel/arch/ppc32/src/ppc32.c /trunk/kernel/arch/ppc64/include/exception.h /trunk/kernel/arch/ppc64/src/mm/page.c /trunk/kernel/arch/ppc64/src/ppc64.c /trunk/kernel/arch/sparc64/src/console.c /trunk/kernel/arch/sparc64/src/drivers/fhc.c /trunk/kernel/arch/sparc64/src/drivers/kbd.c /trunk/kernel/arch/sparc64/src/drivers/scr.c /trunk/kernel/arch/sparc64/src/drivers/sgcn.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/smp/ipi.c /trunk/kernel/arch/sparc64/src/sparc64.c /trunk/kernel/arch/sparc64/src/trap/exception.c /trunk/kernel/arch/sparc64/src/trap/interrupt.c /trunk/kernel/genarch/src/drivers/ega/ega.c /trunk/kernel/genarch/src/fb/fb.c /trunk/kernel/genarch/src/ofw/fhc.c /trunk/kernel/genarch/src/ofw/ofw_tree.c /trunk/kernel/genarch/src/ofw/pci.c /trunk/kernel/generic/include/debug.h /trunk/kernel/generic/include/panic.h /trunk/kernel/generic/src/adt/btree.c /trunk/kernel/generic/src/adt/hash_table.c /trunk/kernel/generic/src/cpu/cpu.c /trunk/kernel/generic/src/interrupt/interrupt.c /trunk/kernel/generic/src/main/kinit.c /trunk/kernel/generic/src/main/main.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/backend_phys.c /trunk/kernel/generic/src/mm/tlb.c /trunk/kernel/generic/src/proc/scheduler.c /trunk/kernel/generic/src/proc/tasklet.c /trunk/kernel/generic/src/synch/rwlock.c /trunk/kernel/generic/src/sysinfo/sysinfo.c /trunk/kernel/generic/src/time/clock.c /trunk/kernel/generic/src/time/timeout.c
|
3788 |
5705 d 23 h |
svoboda |
/trunk/kernel/ |
Unify newlines in fault_if_from_uspace() format strings. (Remove them and print newline automatically). Also start messages with caps. |
|
/trunk/kernel/arch/amd64/src/interrupt.c /trunk/kernel/arch/amd64/src/mm/page.c /trunk/kernel/arch/arm32/src/mm/page_fault.c /trunk/kernel/arch/ia32/src/interrupt.c /trunk/kernel/arch/ia32xen/src/interrupt.c /trunk/kernel/arch/ia32xen/src/mm/page.c /trunk/kernel/arch/ia64/src/interrupt.c /trunk/kernel/arch/mips32/src/exception.c /trunk/kernel/arch/mips32/src/mm/tlb.c /trunk/kernel/arch/ppc32/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/mm/tlb.c /trunk/kernel/arch/sparc64/src/trap/exception.c /trunk/kernel/generic/include/interrupt.h /trunk/kernel/generic/src/interrupt/interrupt.c
|
3779 |
5709 d 8 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
|
3751 |
5717 d 11 h |
svoboda |
/trunk/kernel/arch/ia32/src/drivers/ |
Revive kernel EGA fb driver. Plus fix bug -- was using memcpy() for scrolling instead of memmove(). |
|
/trunk/kernel/arch/ia32/src/drivers/ega.c
|