aboutsummaryrefslogtreecommitdiff
path: root/src/tcb.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-30 19:20:21 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-30 19:20:21 +0300
commit314bca3dc19a864c76153bfcd5a58be8c40000f9 (patch)
tree9aba30284fce66e149a7472adea1cb4037e49463 /src/tcb.c
parent1a2e1fff7ce4b8fd8db46549d81e71e76b842da3 (diff)
downloadkmi-314bca3dc19a864c76153bfcd5a58be8c40000f9.tar.gz
kmi-314bca3dc19a864c76153bfcd5a58be8c40000f9.zip
improvements to shared memory handling
+ Now each shared region is reference counter (technically each region is refernce counted, private regions just have a count of 1). Also, syscalls that touch the TLB get flushed, but should probably look into where else this flushing might be needed.
Diffstat (limited to 'src/tcb.c')
-rw-r--r--src/tcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcb.c b/src/tcb.c
index 3e4c75a..70cad5a 100644
--- a/src/tcb.c
+++ b/src/tcb.c
@@ -199,7 +199,7 @@ struct tcb *create_thread(struct tcb *p)
stat_t r = OK;
if (p) r = __init_owned_thread(p, t);
- else r = __init_free_thread(t);
+ else r = __init_free_thread(t);
if (r) {
free_page(MM_O0, bottom);