aboutsummaryrefslogtreecommitdiff
path: root/src/tcb.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-08-26 19:54:48 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-08-26 19:54:48 +0300
commit1b5a553194f47066d60bb1c9475af1f413af8f4a (patch)
tree05991354207a634d8f48d72a4756a26f40483e33 /src/tcb.c
parentf81cad34c0e29384a393bf3aa25dbce3d5962c53 (diff)
downloadkmi-1b5a553194f47066d60bb1c9475af1f413af8f4a.tar.gz
kmi-1b5a553194f47066d60bb1c9475af1f413af8f4a.zip
make sys_create() better + test
Diffstat (limited to 'src/tcb.c')
-rw-r--r--src/tcb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tcb.c b/src/tcb.c
index 93ce502..64d95a5 100644
--- a/src/tcb.c
+++ b/src/tcb.c
@@ -149,6 +149,7 @@ struct tcb *create_thread(struct tcb *p)
* structure, this works on riscv but in the event that other
* systems don't we can easily turn this into a clone_uvmem. */
t->proc.vmem = p->proc.vmem;
+ t->callback = p->callback;
}
else {
if (!(t->proc.vmem = create_vmem())) {