summaryrefslogtreecommitdiff
path: root/src/kernel/proc.h
diff options
context:
space:
mode:
authordzwdz2022-08-18 14:11:31 +0200
committerdzwdz2022-08-18 14:11:31 +0200
commit0ed2f796d7723af8321f35d4ef5e6781ea41e36d (patch)
treec4b64981d0d2bfddd597eb05e84cd1a781d253e1 /src/kernel/proc.h
parent7a3f292c8316239182f30fa8f3a5e5a14cca587c (diff)
syscall/fork: FORK_SHAREMEM for primitive "threads"
Diffstat (limited to 'src/kernel/proc.h')
-rw-r--r--src/kernel/proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/proc.h b/src/kernel/proc.h
index 27327c4..e7946b2 100644
--- a/src/kernel/proc.h
+++ b/src/kernel/proc.h
@@ -20,6 +20,9 @@ enum process_state {
struct process {
struct pagedir *pages;
+ /* if NULL, refcount == 1. kmalloc'd */
+ uint64_t *pages_refcount;
+
struct registers regs;
struct process *sibling, *child, *parent;