aboutsummaryrefslogtreecommitdiff
path: root/src/tcb.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 02:18:12 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2024-10-30 02:18:12 +0200
commite7b5881903ad81efee63966e7d2c42524d465dfc (patch)
tree86753586a7be933685c313c172545bdaf9086dd1 /src/tcb.c
parent44a73ecab6e91519627786a5101cd4f1a2f2b0d7 (diff)
downloadkmi-e7b5881903ad81efee63966e7d2c42524d465dfc.tar.gz
kmi-e7b5881903ad81efee63966e7d2c42524d465dfc.zip
tests pass
Diffstat (limited to 'src/tcb.c')
-rw-r--r--src/tcb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tcb.c b/src/tcb.c
index f5b1652..1281da2 100644
--- a/src/tcb.c
+++ b/src/tcb.c
@@ -107,7 +107,7 @@ static stat_t __init_free_thread(struct tcb *t)
if (setup_rpc_stack(t)) {
destroy_rpc_stack(t);
- destroy_vmem(t->rpc.vmem);
+ destroy_rpcmem(t->rpc.vmem);
destroy_vmem(t->proc.vmem);
return ERR_OOMEM;
}
@@ -135,7 +135,7 @@ static stat_t __init_owned_thread(struct tcb *p, struct tcb *t)
if (setup_rpc_stack(t)) {
destroy_rpc_stack(t);
- destroy_vmem(t->rpc.vmem);
+ destroy_rpcmem(t->rpc.vmem);
return ERR_OOMEM;
}
@@ -252,9 +252,7 @@ stat_t destroy_thread(struct tcb *t)
/* free memory backing rpc stack */
destroy_rpc_stack(t);
-
- /* free rpc vmem */
- destroy_vmem(t->rpc.vmem);
+ destroy_rpcmem(t->rpc.vmem);
unqueue_ipi(t);