From 1b5a553194f47066d60bb1c9475af1f413af8f4a Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 26 Aug 2024 19:54:48 +0300 Subject: make sys_create() better + test --- src/tcb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tcb.c') 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())) { -- cgit v1.3