Rev |
Age |
Author |
Path |
Log message |
Diff |
Changes |
1589 |
6654 d 7 h |
jermar |
/kernel/trunk/generic/src/ |
Improve comments regarding liveliness of threads and tasks. |
|
/kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/proc/thread.c
|
1588 |
6654 d 7 h |
jermar |
/kernel/trunk/generic/src/ |
In task_kill(), remove the task from the tasks_btree before proceeding.
Thus, when the kernel finds the task in the tasks_btree and locks it before
releasing tasks_lock, it is guaranteed that the task will not be destroyed
until the lock is held. If the kernel needs to unlock the task, do some operation
and lock it again, it should increase its refcount before doing so. In that case,
when releasing the lock, it must decrement the refcount and if it reaches
zero, it must call task_destroy(). |
|
/kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/security/cap.c
|
1494 |
6658 d 1 h |
palkovsky |
/kernel/trunk/generic/ |
Removes unnecessary parameter for map_physmem syscall. |
|
/kernel/trunk/generic/include/ddi/ddi.h /kernel/trunk/generic/src/ddi/ddi.c
|
1429 |
6662 d 16 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
|
1425 |
6663 d 6 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 |
6663 d 8 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
|
1409 |
6667 d 2 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
|
1297 |
6683 d 10 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
|
1288 |
6685 d 14 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
|
1278 |
6688 d 7 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
|
1248 |
6693 d 8 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
|
1239 |
6694 d 8 h |
jermar |
/kernel/trunk/generic/ |
Prevent race in as_area_send() by allowing the address space area to be
created with AS_AREA_ATTR_PARTIAL attribute. |
|
/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
|
1227 |
6697 d 9 h |
jermar |
/kernel/trunk/ |
Reorganize syscall names to better correspond to kernel architecture.
Add dummy placeholders for SYS_AS_AREA_SHARE_APPROVE and
SYS_AS_AREA_SHARE_PERFORM syscalls. |
|
/kernel/trunk/arch/amd64/src/ddi/ddi.c /kernel/trunk/arch/ia32/src/ddi/ddi.c /kernel/trunk/arch/ia64/src/ddi/ddi.c /kernel/trunk/arch/mips32/src/ddi/ddi.c /kernel/trunk/arch/ppc32/src/ddi/ddi.c /kernel/trunk/arch/ppc64/src/ddi/ddi.c /kernel/trunk/arch/sparc64/src/ddi/ddi.c /kernel/trunk/generic/include/ddi/ddi.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/syscall/syscall.c
|
1212 |
6698 d 8 h |
palkovsky |
/kernel/trunk/ |
Added uspace call to enable/disable interrupts. |
|
/kernel/trunk/arch/amd64/include/cpu.h /kernel/trunk/arch/amd64/src/asm_utils.S /kernel/trunk/arch/amd64/src/ddi/ddi.c /kernel/trunk/arch/amd64/src/mm/page.c /kernel/trunk/arch/ia32/include/cpu.h /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
|
1191 |
6706 d 16 h |
jermar |
/kernel/trunk/ |
Kernel support for SYS_ENABLE_IOSPACE.
amd64 and ia32 provide dummy implementation thereof. |
|
/kernel/trunk/arch/amd64/src/ddi /kernel/trunk/arch/amd64/src/ddi/ddi.c /kernel/trunk/arch/ia32/src/ddi /kernel/trunk/arch/ia32/src/ddi/ddi.c /kernel/trunk/arch/ia64/src/ddi /kernel/trunk/arch/ia64/src/ddi/ddi.c /kernel/trunk/arch/mips32/src/ddi /kernel/trunk/arch/mips32/src/ddi/ddi.c /kernel/trunk/arch/ppc32/src/ddi /kernel/trunk/arch/ppc32/src/ddi/ddi.c /kernel/trunk/arch/ppc64/src/ddi /kernel/trunk/arch/ppc64/src/ddi/ddi.c /kernel/trunk/arch/sparc64/src/ddi /kernel/trunk/arch/sparc64/src/ddi/ddi.c
/kernel/trunk/arch/amd64/Makefile.inc /kernel/trunk/arch/ia32/Makefile.inc /kernel/trunk/arch/ia64/Makefile.inc /kernel/trunk/arch/mips32/Makefile.inc /kernel/trunk/arch/ppc32/Makefile.inc /kernel/trunk/arch/ppc64/Makefile.inc /kernel/trunk/arch/sparc64/Makefile.inc /kernel/trunk/generic/include/ddi/ddi.h /kernel/trunk/generic/include/ddi/ddi_arg.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/ddi/ddi.c /kernel/trunk/generic/src/syscall/syscall.c
|
1178 |
6708 d 9 h |
jermar |
/kernel/trunk/ |
Add task_find_by_id().
Add kernel support for SYS_MAP_PHYSMEM. |
|
/kernel/trunk/generic/include/ddi /kernel/trunk/generic/include/ddi/ddi.h /kernel/trunk/generic/include/ddi/ddi_arg.h /kernel/trunk/generic/src/ddi /kernel/trunk/generic/src/ddi/ddi.c
/kernel/trunk/Makefile /kernel/trunk/generic/include/errno.h /kernel/trunk/generic/include/mm/as.h /kernel/trunk/generic/include/proc/task.h /kernel/trunk/generic/include/syscall/syscall.h /kernel/trunk/generic/src/mm/as.c /kernel/trunk/generic/src/proc/task.c /kernel/trunk/generic/src/syscall/syscall.c
|