diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-10-30 02:18:12 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-10-30 02:18:12 +0200 |
| commit | e7b5881903ad81efee63966e7d2c42524d465dfc (patch) | |
| tree | 86753586a7be933685c313c172545bdaf9086dd1 /src/tcb.c | |
| parent | 44a73ecab6e91519627786a5101cd4f1a2f2b0d7 (diff) | |
| download | kmi-e7b5881903ad81efee63966e7d2c42524d465dfc.tar.gz kmi-e7b5881903ad81efee63966e7d2c42524d465dfc.zip | |
tests pass
Diffstat (limited to 'src/tcb.c')
| -rw-r--r-- | src/tcb.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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); |
