From e7b5881903ad81efee63966e7d2c42524d465dfc Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 30 Oct 2024 02:18:12 +0200 Subject: tests pass --- src/tcb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/tcb.c') 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); -- cgit v1.3