Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1440 |
6656 d 16 h |
palkovsky |
/kernel/trunk/generic/include/ |
Added error code for timeouts. |
|
/kernel/trunk/generic/include/errno.h
|
1438 |
6656 d 17 h |
palkovsky |
/kernel/trunk/generic/ |
Correct realtime clock communication. |
|
/kernel/trunk/generic/include/print.h /kernel/trunk/generic/src/time/clock.c
|
1434 |
6656 d 21 h |
palkovsky |
/kernel/trunk/ |
Added 'realtime' clock interface.
Added some asm macros as memory barriers.
Added drift computing for mips platform. |
|
/kernel/trunk/arch/ia32/include/barrier.h /kernel/trunk/arch/mips32/include/barrier.h /kernel/trunk/arch/mips32/include/cp0.h /kernel/trunk/arch/mips32/src/interrupt.c /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/generic/include/time/clock.h /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/time/clock.c
|
1431 |
6657 d 4 h |
jermar |
/kernel/trunk/generic/ |
Add missed_clock_ticks to CPU structure so that clock() can detect missed timer interrupts.
Architectures are required to support this in order to make time keeping accurate. |
|
/kernel/trunk/generic/include/cpu.h /kernel/trunk/generic/src/time/clock.c
|
1429 |
6657 d 6 h |
jermar |
/kernel/trunk/generic/ |
Make ddi_physmem_map() accept address space area flags instead of writable switch.
Thus even these types of address space areas can turn caching on, if it is desired. |
|
/kernel/trunk/generic/include/ddi/ddi_arg.h /kernel/trunk/generic/src/ddi/ddi.c
|
1428 |
6657 d 17 h |
palkovsky |
/kernel/trunk/generic/ |
Added 256K slab, so that AMD can boot (until ELF loader is fixed).
Added AS_AREA_RECV so that the caller can receive AS_AREA. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/slab.h /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/slab.c
|
1425 |
6657 d 20 h |
jermar |
/kernel/trunk/generic/ |
Make address space backend data a union. |
|
/kernel/trunk/generic/include/elf.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/mm/backend_anon.c /kernel/trunk/generic/src/mm/backend_elf.c /kernel/trunk/generic/src/mm/backend_phys.c
|
1424 |
6657 d 22 h |
jermar |
/kernel/trunk/ |
Move the sharing functionality to address space area backends.
Add backend for continuous regions of physical memory.
Sharing for these areas works automagically now. |
|
/kernel/trunk/generic/src/mm/backend_anon.c /kernel/trunk/generic/src/mm/backend_elf.c /kernel/trunk/generic/src/mm/backend_phys.c
/kernel/trunk/Makefile /kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/proc/task.c
|
1423 |
6658 d 2 h |
jermar |
/kernel/trunk/ |
Update page fault handlers to distinguish between different access modes that had caused the page fault. |
|
/kernel/trunk/arch/amd64/include/mm/page.h /kernel/trunk/arch/ia32/include/mm/page.h /kernel/trunk/arch/mips32/include/mm/page.h /kernel/trunk/arch/ppc32/include/mm/page.h /kernel/trunk/arch/ppc64/include/mm/page.h /kernel/trunk/genarch/include/mm/page_ht.h /kernel/trunk/genarch/include/mm/page_pt.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/mm/as.c
|
1417 |
6659 d 18 h |
jermar |
/kernel/trunk/generic/ |
Modify as_area_share() to accept destination area flags bitmask from the sender
(i.e. the sender can limit access mode to the shared area for the recipient).
Modify IPC_M_AS_AREA_SEND code to support this. Arguments for sender: arg1=as_area,
arg2=size, arg3=flags_mask.
The mechanism seems to work, but the page fault handlers need to be altered to
distinguish between faults under different access modes. |
|
/kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/mm/as.c
|
1416 |
6660 d 6 h |
jermar |
/kernel/trunk/generic/ |
Make implementation of condition variables compliant with their definition.
Signal operation must become a no-op if there is no thread in the wait operation.
Remove condvar_trywait() which has no meaning after this change. |
|
/kernel/trunk/generic/include/synch/condvar.h /kernel/trunk/generic/src/synch/condvar.c
|
1415 |
6660 d 7 h |
jermar |
/kernel/trunk/generic/ |
Some renaming to prevent confusion.
as_lock -> inactive_as_with_asid_lock
as_t::refcount -> as_t::cpu_refcount |
|
/kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/mm/as.c
|
1413 |
6660 d 18 h |
jermar |
/kernel/trunk/generic/ |
Reimplement memory sharing. Currently, only
anonymous address space areas can be shared. |
|
/kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/mm/as.c
|
1411 |
6660 d 23 h |
jermar |
/kernel/trunk/ |
Modify the hierarchy of page fault handlers to pass access mode that caused the fault.
Architectures are required to pass either PF_ACCESS_READ, PF_ACCESS_WRITE or PF_ACCESS_EXEC
to as_page_fault(), depending on the cause of the fault. |
|
/kernel/trunk/arch/amd64/include/mm/page.h /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/include/interrupt.h /kernel/trunk/arch/ia32/include/mm/page.h /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/ia64/src/mm/tlb.c /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/src/mm/page.c /kernel/trunk/arch/ppc64/src/mm/page.c /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/page.h /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/mm/as.c
|
1409 |
6661 d 16 h |
jermar |
/kernel/trunk/generic/ |
Some shared memory stuff (not completed).
Support for address space area backends.
Add ELF and anonymous memory backends. |
|
/kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/proc/task.c
|
1387 |
6664 d 0 h |
jermar |
/kernel/trunk/generic/ |
Add used_space_insert() and used_space_remove().
These are the alpha versions of functions that
will help to map used and unused portions of address
space areas. Currently unused, but many as_area operations
will be more efficient when the used space B+tree map
is used. |
|
/kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/src/mm/as.c
|
1382 |
6664 d 18 h |
decky |
/kernel/trunk/ |
make hardware memory mapping more generic |
|
/kernel/trunk/genarch/src/fb/fb_map.c
/kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/src/mm/page.c /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/arch/sparc64/src/console.c /kernel/trunk/arch/sparc64/src/mm/page.c /kernel/trunk/genarch/Makefile.inc /kernel/trunk/genarch/include/fb/fb.h /kernel/trunk/genarch/src/fb/fb.c /kernel/trunk/generic/include/mm/page.h
|
1380 |
6664 d 20 h |
jermar |
/kernel/trunk/ |
Turn address space lock, address space area lock and
page_ht_lock into mutexes. |
|
/kernel/trunk/genarch/include/mm/page_ht.h /kernel/trunk/genarch/src/mm/as_ht.c /kernel/trunk/genarch/src/mm/as_pt.c /kernel/trunk/genarch/src/mm/asid.c /kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/synch/mutex.h /kernel/trunk/generic/include/typedefs.h /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/proc/scheduler.c
|
1375 |
6666 d 4 h |
jermar |
/kernel/trunk/generic/ |
Fix race in condition variables. |
|
/kernel/trunk/generic/include/synch/waitq.h /kernel/trunk/generic/src/synch/condvar.c /kernel/trunk/generic/src/synch/waitq.c
|
1364 |
6668 d 2 h |
jermar |
/kernel/trunk/generic/ |
Modify ipc_wait_for_call() to support all of blocking, non-blocking and timeout operation. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/sysipc.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1359 |
6668 d 22 h |
jermar |
/kernel/trunk/generic/ |
Rename IPC_M_AS_SEND to IPC_M_AS_AREA_SEND. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/src/ipc/sysipc.c
|
1358 |
6668 d 23 h |
jermar |
/kernel/trunk/generic/ |
Cleanup after removal of as_area_accept and as_area_send. |
|
/kernel/trunk/generic/include/mm/as_arg.h
/kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/proc/task.c
|
1342 |
6669 d 6 h |
jermar |
/kernel/trunk/generic/ |
Improve comments. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/src/ipc/ipc.c
|
1329 |
6670 d 22 h |
palkovsky |
/kernel/trunk/generic/ |
Added support to IPC for simple page sharing. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/syscall/syscall.c
|
1327 |
6671 d 1 h |
decky |
/kernel/trunk/ |
split framebuffer initialization and sysinfo registration |
|
/kernel/trunk/arch/ia32/src/drivers/vesa.c /kernel/trunk/arch/ppc32/include/console.h /kernel/trunk/arch/ppc32/src/console.c /kernel/trunk/arch/ppc32/src/ppc32.c /kernel/trunk/genarch/include/fb/fb.h /kernel/trunk/genarch/src/fb/fb.c /kernel/trunk/generic/include/syscall/syscall.h
|
1321 |
6671 d 6 h |
vana |
/kernel/trunk/generic/ |
force return 0 if no valid pointer in sysinfo syscall |
|
/kernel/trunk/generic/include/sysinfo/sysinfo.h /kernel/trunk/generic/src/sysinfo/sysinfo.c
|
1318 |
6671 d 19 h |
vana |
/kernel/trunk/ |
Sysinfo userspace interface |
|
/kernel/trunk/arch/ia32/src/drivers/vesa.c /kernel/trunk/genarch/src/fb/fb.c /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/include/sysinfo/sysinfo.h /kernel/trunk/generic/src/syscall/syscall.c /kernel/trunk/generic/src/sysinfo/sysinfo.c
|
1317 |
6671 d 21 h |
vana |
/kernel/trunk/ |
System information tools |
|
/kernel/trunk/generic/include/sysinfo /kernel/trunk/generic/include/sysinfo/sysinfo.h /kernel/trunk/generic/src/sysinfo /kernel/trunk/generic/src/sysinfo/sysinfo.c /kernel/trunk/test/sysinfo /kernel/trunk/test/sysinfo/test.c
/kernel/trunk/Makefile /kernel/trunk/genarch/src/fb/fb.c /kernel/trunk/kernel.config
|
1315 |
6671 d 22 h |
jermar |
/kernel/trunk/generic/ |
Improve framebuffer speed by buffering blank line. |
|
/kernel/trunk/generic/include/config.h /kernel/trunk/generic/src/main/main.c
|
1310 |
6673 d 3 h |
jermar |
/kernel/trunk/ |
Change coding style in vesa.c and do some minor changes. |
|
/kernel/trunk/arch/ia32/include/vesa.h /kernel/trunk/arch/ia32/src/drivers/vesa.c /kernel/trunk/generic/include/bitops.h
|
1306 |
6674 d 0 h |
jermar |
/kernel/trunk/generic/ |
Add SYS_AS_AREA_DESTROY syscall.
Add few error codes to errno.h
and change as.c accordingly. |
|
/kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/syscall/syscall.c
|
1297 |
6678 d 0 h |
jermar |
/kernel/trunk/ |
Add SYS_CAP_GRANT and SYS_CAP_REVOKE syscalls.
Move SYS_PREEMPT_CONTROL to ddi.c.
Add some comments and fix some small issues. |
|
/kernel/trunk/generic/include/syscall/sysarg64.h
/kernel/trunk/doc/mm /kernel/trunk/generic/include/ddi/ddi.h /kernel/trunk/generic/include/security/cap.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/mm/tlb.c /kernel/trunk/generic/src/security/cap.c /kernel/trunk/generic/src/syscall/syscall.c
|
1293 |
6680 d 0 h |
palkovsky |
/kernel/trunk/ |
Implemented mips memcpy (copy from gcc builtin memcpy). |
|
/kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/src/asm.S /kernel/trunk/arch/mips32/src/start.S /kernel/trunk/generic/include/syscall/copy.h /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/syscall/copy.c /kernel/trunk/generic/src/syscall/syscall.c
|
1288 |
6680 d 4 h |
jermar |
/kernel/trunk/ |
Complete implementation of copy_from_uspace() and copy_to_uspace()
for amd64 and ia32. Other architectures still compile and run,
but need to implement their own assembly-only memcpy(), memcpy_from_uspace(),
memcpy_to_uspace() and their failover parts. For these architectures
only dummy implementations are provided. |
|
/kernel/trunk/generic/include/syscall/copy.h /kernel/trunk/generic/src/syscall/copy.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/include/interrupt.h /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/include/interrupt.h /kernel/trunk/arch/ia32/src/asm.S /kernel/trunk/arch/ia32/src/boot/boot.S /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/ia64/include/interrupt.h /kernel/trunk/arch/ia64/src/asm.S /kernel/trunk/arch/ia64/src/mm/tlb.c /kernel/trunk/arch/mips32/include/exception.h /kernel/trunk/arch/mips32/src/asm.S /kernel/trunk/arch/mips32/src/mm/tlb.c /kernel/trunk/arch/ppc32/include/exception.h /kernel/trunk/arch/ppc32/include/interrupt.h /kernel/trunk/arch/ppc32/src/asm.S /kernel/trunk/arch/ppc32/src/mm/tlb.c /kernel/trunk/arch/sparc64/include/interrupt.h /kernel/trunk/arch/sparc64/src/asm.S /kernel/trunk/generic/include/interrupt.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/mm/page.h /kernel/trunk/generic/include/proc/thread.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/ipc/irq.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/printf/vsnprintf.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/smp/ipi.c /kernel/trunk/generic/src/synch/waitq.c
|
1284 |
6682 d 7 h |
palkovsky |
/kernel/trunk/generic/ |
Added commands for accessing ia32 portspace in irq top-half. |
|
/kernel/trunk/generic/include/ipc/irq.h /kernel/trunk/generic/src/ipc/irq.c
|
1281 |
6682 d 18 h |
palkovsky |
/kernel/trunk/ |
Added means to make a simple action upon interrupt. |
|
/kernel/trunk/generic/include/ipc/irq.h /kernel/trunk/generic/src/ipc/irq.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/sysipc.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1278 |
6682 d 21 h |
palkovsky |
/kernel/trunk/ |
Changed interrupt_control to preemption_control. |
|
/kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/amd64/src/ddi/ddi.c /kernel/trunk/arch/ia32/src/asm.S /kernel/trunk/arch/ia32/src/ddi/ddi.c /kernel/trunk/arch/mips32/src/ddi/ddi.c /kernel/trunk/arch/mips32/src/start.S /kernel/trunk/generic/include/ddi/ddi.h /kernel/trunk/generic/include/security/cap.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/syscall/syscall.c
|
1271 |
6683 d 4 h |
cejka |
/kernel/trunk/ |
All the *printf functions ported to kernel.
Comments updated.
Printf1 test uses snprintf to test printing to a string. |
|
/kernel/trunk/generic/include/printf /kernel/trunk/generic/include/printf/printf_core.h /kernel/trunk/generic/src/debug/printf.c /kernel/trunk/generic/src/debug/printf_core.c /kernel/trunk/generic/src/debug/snprintf.c /kernel/trunk/generic/src/debug/sprintf.c /kernel/trunk/generic/src/debug/vprintf.c /kernel/trunk/generic/src/debug/vsnprintf.c /kernel/trunk/generic/src/debug/vsprintf.c
/kernel/trunk/generic/src/debug/print.c
/kernel/trunk/Makefile /kernel/trunk/generic/include/print.h /kernel/trunk/test/print/print1/test.c
|
1264 |
6684 d 3 h |
jermar |
/kernel/trunk/generic/ |
Improve Doxygen-comments. |
|
/kernel/trunk/generic/include/security/cap.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/console/kconsole.c /kernel/trunk/generic/src/cpu/cpu.c /kernel/trunk/generic/src/debug/print.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/interrupt/interrupt.c /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/lib/func.c /kernel/trunk/generic/src/lib/memstr.c /kernel/trunk/generic/src/lib/sort.c /kernel/trunk/generic/src/preempt/preemption.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/security/cap.c /kernel/trunk/generic/src/smp/ipi.c /kernel/trunk/generic/src/synch/condvar.c /kernel/trunk/generic/src/synch/futex.c /kernel/trunk/generic/src/synch/mutex.c /kernel/trunk/generic/src/synch/semaphore.c /kernel/trunk/generic/src/synch/spinlock.c /kernel/trunk/generic/src/syscall/syscall.c /kernel/trunk/generic/src/time/clock.c /kernel/trunk/generic/src/time/delay.c /kernel/trunk/generic/src/time/timeout.c
|
1258 |
6685 d 17 h |
palkovsky |
/kernel/trunk/ |
Added support for IRQ notifiactions.
- seems to work correctly on ia32, amd64
- the mips kbd probably lowers interrupts when the char is read from
the port, we will have to find a way how to deal with it. |
|
/kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/arch/ia32/src/interrupt.c /kernel/trunk/arch/mips32/include/interrupt.h /kernel/trunk/arch/mips32/src/interrupt.c /kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/sysipc.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/syscall/syscall.c
|