aboutsummaryrefslogtreecommitdiff
path: root/include/apos
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-10-14 15:19:08 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-10-14 15:19:08 +0300
commit0bd3518117ad29ffc91c7967068abc9948cc4885 (patch)
tree5560d514e9880c582462da06048e83e21fc4c258 /include/apos
parent54df2c4c0a61c03cba268e45e0fd85bf2a7e564b (diff)
downloadkmi-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 'include/apos')
-rw-r--r--include/apos/mem.h4
-rw-r--r--include/apos/tcb.h6
-rw-r--r--include/apos/vmem.h6
3 files changed, 6 insertions, 10 deletions
diff --git a/include/apos/mem.h b/include/apos/mem.h
index 512f1e7..0eed025 100644
--- a/include/apos/mem.h
+++ b/include/apos/mem.h
@@ -217,10 +217,8 @@
#define MR_SHARED (1 << 9)
/** Owner of shared region. */
#define MR_OWNED (1 << 10)
-/** Copy on write. */
-#define MR_COW (1 << 11)
/** Don't free memory on clear. */
-#define MR_KEEP (1 << 12)
+#define MR_KEEP (1 << 11)
/** @} */
diff --git a/include/apos/tcb.h b/include/apos/tcb.h
index 72dcc98..63bf037 100644
--- a/include/apos/tcb.h
+++ b/include/apos/tcb.h
@@ -62,7 +62,7 @@ struct tcb_ctx {
};
/** Enum for notification states. */
-enum tcb_notify_state {
+enum tcb_notify {
/** Thread has notifcations queued. */
NOTIFY_QUEUED,
@@ -178,11 +178,9 @@ struct tcb *create_thread(struct tcb *p);
* Create a new process.
*
* Sets up a new thread in a new process context. If there is a parent thread,
- * its memory regions are copied but made COW.
+ * its memory regions are copied.
* \see create_thread().
*
- * \todo COW handling.
- *
* @param p Parent process.
* @return Pointer to created \ref tcb.
*/
diff --git a/include/apos/vmem.h b/include/apos/vmem.h
index ba5fb84..eb901a8 100644
--- a/include/apos/vmem.h
+++ b/include/apos/vmem.h
@@ -151,9 +151,9 @@ stat_t alloc_shared_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr,
vmflags_t flags, enum mm_order order, void *data);
/**
- * User virtual memory COW copying worker callback for \ref map_fill_region().
+ * User virtual memory copying worker callback for \ref map_fill_region().
*
- * Currently unused, but intention is to set up COW copy of some other virtual
+ * Currently unused, but intention is to set up copy of some other virtual
* memory region, likely passed through \c data?
*
* @param b Virtual memory to work in.
@@ -214,7 +214,7 @@ stat_t free_uvmem_wrapper(struct vmem *b, pm_t *offset, vm_t vaddr,
map_fill_region(b, &alloc_shared_wrapper, 0, start, bytes, flags, data)
/**
- * Convenience wrapper for \ref map_fill_region() when COW copying a region.
+ * Convenience wrapper for \ref map_fill_region() when copying a region.
*
* @param b Virtual memory to work in.
* @param start Start of virtual memory region to map.