From f0935d3d20c2624b7c4b70a8e8ad891e516a0641 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 13 Nov 2022 17:40:44 +0200 Subject: give symbolic name to rpc stack ratio --- common/tcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/tcb.c') diff --git a/common/tcb.c b/common/tcb.c index afc8442..08b48c9 100644 --- a/common/tcb.c +++ b/common/tcb.c @@ -480,5 +480,5 @@ bool enough_rpc_stack(struct tcb *t) vm_t top = RPC_STACK_BASE + __call_stack_size; vm_t rpc_stack = t->rpc_stack + BASE_PAGE_SIZE; - return top - rpc_stack >= __call_stack_size / 4; + return top - rpc_stack >= __call_stack_size / RPC_STACK_RATIO; } -- cgit v1.3