aboutsummaryrefslogtreecommitdiff
path: root/src/orphanage.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 00:57:33 +0200
commit44a73ecab6e91519627786a5101cd4f1a2f2b0d7 (patch)
treef5c811050a4d5ee832f5883c4d0c27efddd60817 /src/orphanage.c
parent5976ad390a15726c3ddfacf8c8b282c8350f9554 (diff)
downloadkmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.tar.gz
kmi-44a73ecab6e91519627786a5101cd4f1a2f2b0d7.zip
most of the way to passing tests
Diffstat (limited to 'src/orphanage.c')
-rw-r--r--src/orphanage.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/orphanage.c b/src/orphanage.c
index 6de520f..6cde48a 100644
--- a/src/orphanage.c
+++ b/src/orphanage.c
@@ -31,7 +31,6 @@ void unorphanize(struct tcb *t)
struct tcb *init = get_tcb(1);
reference_thread(init);
- free_stack(t);
reset_rpc_stack(t);
id_t old_rid = t->rid;
@@ -41,7 +40,6 @@ void unorphanize(struct tcb *t)
clone_uvmem(init->proc.vmem, t->rpc.vmem);
use_vmem(t->rpc.vmem);
- alloc_stack(t);
assert(init->callback);
set_ret4(t, 0, t->tid, SYS_USER_ORPHANED, old_rid);