Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1434 |
6741 d 1 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
|
1428 |
6741 d 20 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
|
1417 |
6743 d 22 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
|
1413 |
6744 d 21 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
|
1396 |
6747 d 23 h |
palkovsky |
/kernel/trunk/ |
Fixed mips to compile with fb (missing hw_map).
Fixed mips hw virt/phys addresses of fb.
Moved fb_init to post_mm, because it needs malloc(). |
|
/kernel/trunk/arch/mips32/src/console.c /kernel/trunk/arch/mips32/src/mips32.c /kernel/trunk/arch/mips32/src/mm/page.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1364 |
6752 d 5 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 |
6753 d 2 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
|
1346 |
6753 d 9 h |
palkovsky |
/kernel/trunk/generic/src/ipc/ |
Small updates to IPC regarding AS_SEND. |
|
/kernel/trunk/generic/src/ipc/sysipc.c
|
1329 |
6755 d 2 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
|
1297 |
6762 d 4 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 |
6764 d 4 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 |
6764 d 7 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
|
1281 |
6766 d 21 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
|
1258 |
6769 d 21 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
|
1248 |
6772 d 2 h |
jermar |
/kernel/trunk/ |
Add some @file doxygen comments and improve already existing comments. |
|
/kernel/trunk/genarch/src/mm/page_ht.c /kernel/trunk/genarch/src/mm/page_pt.c /kernel/trunk/generic/src/adt/bitmap.c /kernel/trunk/generic/src/adt/btree.c /kernel/trunk/generic/src/adt/hash_table.c /kernel/trunk/generic/src/adt/list.c /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/debug/symtab.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/lib/elf.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/main/uinit.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/mm/buddy.c /kernel/trunk/generic/src/mm/frame.c /kernel/trunk/generic/src/mm/page.c /kernel/trunk/generic/src/mm/slab.c /kernel/trunk/generic/src/mm/tlb.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/the.c /kernel/trunk/generic/src/proc/thread.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/rwlock.c /kernel/trunk/generic/src/synch/semaphore.c /kernel/trunk/generic/src/synch/waitq.c
|
1141 |
6799 d 5 h |
palkovsky |
/kernel/trunk/generic/src/ipc/ |
Completed ipc_cleanup, it should be somehow integrated into
cleanup of task. The function can sleep. |
|
/kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1090 |
6811 d 0 h |
palkovsky |
/kernel/trunk/generic/ |
Reduced unnecessary IPC system calls.
Allow everything to be sync & async, everything is handled using messages. |
|
/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/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/syscall/syscall.c
|
1088 |
6811 d 7 h |
palkovsky |
/kernel/trunk/generic/ |
More IPC stuff, added correct closing of connections from both sides. |
|
/kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1086 |
6811 d 20 h |
palkovsky |
/kernel/trunk/generic/ |
Untested better IPC functions.
* There is some bug in MIPS, unpredicatbly sometimes the thread gets mapped
different frame for stack. |
|
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/ipcrsc.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/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/proc/scheduler.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c /kernel/trunk/generic/src/syscall/syscall.c
|
1084 |
6812 d 18 h |
palkovsky |
/kernel/trunk/ |
Better IPC implementation with regard to locking and final cleanup. |
|
/kernel/trunk/tools/ia32 /kernel/trunk/tools/ia32/decpt.py
/kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/ipc/ipcrsc.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/ipcrsc.c /kernel/trunk/generic/src/ipc/sysipc.c
|
1072 |
6813 d 8 h |
palkovsky |
/kernel/trunk/ |
Added debugger to AMD64.
Added automatic debugging of AS if it is not rewritten with zero.
Did small changes to IPC infrastructure. |
|
/kernel/trunk/arch/amd64/include/debugger.h /kernel/trunk/arch/amd64/src/debugger.c /kernel/trunk/generic/include/ipc/ipcrsc.h /kernel/trunk/generic/src/ipc/ipcrsc.c
/kernel/trunk/Makefile /kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/amd64/include/asm.h /kernel/trunk/arch/amd64/include/cpu.h /kernel/trunk/arch/amd64/include/interrupt.h /kernel/trunk/arch/amd64/src/amd64.c /kernel/trunk/arch/amd64/src/proc/scheduler.c /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/kernel.config
|
1063 |
6813 d 19 h |
palkovsky |
/kernel/trunk/ |
Add support for more then 2GB of address space for AMD64. |
|
/kernel/trunk/arch/amd64/include/mm/as.h /kernel/trunk/arch/amd64/include/mm/page.h /kernel/trunk/arch/amd64/src/boot/boot.S /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/generic/include/macros.h /kernel/trunk/generic/include/mm/frame.h /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/main/main.c /kernel/trunk/generic/src/mm/frame.c
|
1060 |
6813 d 22 h |
palkovsky |
/kernel/trunk/ |
Added task_print.
Fixed ipc to support connect_me_to. |
|
/kernel/trunk/arch/amd64/src/interrupt.c /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/src/console/cmd.c /kernel/trunk/generic/src/ipc/sysipc.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
1040 |
6814 d 7 h |
palkovsky |
/kernel/trunk/generic/ |
Changed ipc to use spinlocks instead of mutexes again.
Fixed loading inits to set nameservice as the first loaded process.
Lot of TODO in ipc done. |
|
/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/main/kinit.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/syscall/syscall.c
|
1029 |
6814 d 19 h |
palkovsky |
/kernel/trunk/generic/src/ipc/ |
Fixed bad locking. |
|
/kernel/trunk/generic/src/ipc/sysipc.c
|
1027 |
6814 d 19 h |
palkovsky |
/kernel/trunk/ |
Implemented callback IPC call (connect_to_me). |
|
/kernel/trunk/generic/include/ipc/sysipc.h /kernel/trunk/generic/src/ipc/sysipc.c
/kernel/trunk/generic/include/ipc/ns.h /kernel/trunk/generic/src/ipc/ns.c
/kernel/trunk/Makefile /kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/ipc/ipc.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ipc/ipc.c /kernel/trunk/generic/src/main/kinit.c /kernel/trunk/generic/src/syscall/syscall.c
|