diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-14 15:19:08 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-10-14 15:19:08 +0300 |
| commit | 0bd3518117ad29ffc91c7967068abc9948cc4885 (patch) | |
| tree | 5560d514e9880c582462da06048e83e21fc4c258 /common | |
| parent | 54df2c4c0a61c03cba268e45e0fd85bf2a7e564b (diff) | |
| download | kmi-0bd3518117ad29ffc91c7967068abc9948cc4885.tar.gz kmi-0bd3518117ad29ffc91c7967068abc9948cc4885.zip | |
remove references to cow
+ Skip cow for now, maybe implement later but try to keep things simple.
Diffstat (limited to 'common')
| -rw-r--r-- | common/pmem.c | 4 | ||||
| -rw-r--r-- | common/tcb.c | 6 | ||||
| -rw-r--r-- | common/uapi/proc.c | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/common/pmem.c b/common/pmem.c index 2b2fb00..748a1c8 100644 --- a/common/pmem.c +++ b/common/pmem.c @@ -36,6 +36,10 @@ #include <apos/bits.h> /* is_nset etc */ #include <libfdt.h> +/* \todo add memory page counting? + * To make sure memory is not overcommited at clone, for example. + */ + /** * Loop through all page usage bits in current bitmap. * diff --git a/common/tcb.c b/common/tcb.c index 9768eb0..94abef7 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -170,7 +170,7 @@ struct tcb *create_thread(struct tcb *p) } /** - * Copy process, setting up COW. + * Copy process. * * @param p Parent process. * @param n New process. @@ -178,9 +178,7 @@ struct tcb *create_thread(struct tcb *p) */ static stat_t __copy_proc(struct tcb *p, struct tcb *n) { - /** \todo Copy memory regions, and mark them MR_COW, as well as copy - * bm_branch tree but with VM_W off, also at some point write COW - * handler */ + /** \todo Copy memory regions as well as copy */ return OK; } diff --git a/common/uapi/proc.c b/common/uapi/proc.c index a48b7eb..c8078db 100644 --- a/common/uapi/proc.c +++ b/common/uapi/proc.c @@ -85,6 +85,7 @@ SYSCALL_DEFINE2(exec)(sys_arg_t bin, sys_arg_t interp){ /** * Kill syscall handler. * + * @param tid Thread to kill. * \todo Implement. * * @return No? |
