From e1a2632b21a7b73fdc22eb4362af4e8f614ca855 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Tue, 27 May 2025 13:11:34 -0400 Subject: libcr: Fuss with logs --- libcr/coroutine.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libcr/coroutine.c') diff --git a/libcr/coroutine.c b/libcr/coroutine.c index baa559b..121cc3b 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -583,7 +583,10 @@ cid_t coroutine_add_with_stack_size(size_t stack_size, stack_size, "+2*", (base10, CR_STACK_GUARD_SIZE), "=", coroutine_table[child-1].stack_size); coroutine_table[child-1].stack = aligned_alloc(CR_PLAT_STACK_ALIGNMENT, coroutine_table[child-1].stack_size); - log_infoln("... done, stack is [", + log_infoln("...done, stack is [", + (ptr, coroutine_table[child-1].stack), ",", + (ptr, coroutine_table[child-1].stack + coroutine_table[child-1].stack_size), ")"); + log_infoln(" usable stack is [", (ptr, coroutine_table[child-1].stack + CR_STACK_GUARD_SIZE), ",", (ptr, coroutine_table[child-1].stack + CR_STACK_GUARD_SIZE + stack_size), ")"); #if CONFIG_COROUTINE_MEASURE_STACK || CONFIG_COROUTINE_PROTECT_STACK @@ -607,7 +610,6 @@ cid_t coroutine_add_with_stack_size(size_t stack_size, + stack_size #endif ; - log_debugln("...stack =", (ptr, coroutine_table[child-1].stack)); log_debugln("...stack_base=", (ptr, stack_base)); /* run until cr_begin() */ cr_plat_call_with_stack(stack_base, fn, args); -- cgit v1.2.3-2-g168b