summaryrefslogtreecommitdiff
path: root/libcr/coroutine.c
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-05 03:41:44 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-05 21:34:27 -0600
commit8a39cfe7f245bea8b3a458238b694de13c61b88a (patch)
tree9969e8e902bedacdde3ebef0ed7ec6a2f0b23618 /libcr/coroutine.c
parentd291799fc5bb4fa1bde757c1a78646b0dc2551a1 (diff)
SYSTEM headers don't get strict GCC checks, so change them to PUBLIC
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r--libcr/coroutine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcr/coroutine.c b/libcr/coroutine.c
index 33e8141..bf44219 100644
--- a/libcr/coroutine.c
+++ b/libcr/coroutine.c
@@ -424,9 +424,9 @@ static const uint8_t stack_pattern[] = {
#endif
#if CONFIG_COROUTINE_PROTECT_STACK
#define CR_STACK_GUARD_SIZE \
- LM_ROUND_UP(sizeof(stack_pattern), CR_PLAT_STACK_ALIGNMENT)
+ ((size_t)LM_ROUND_UP(sizeof(stack_pattern), CR_PLAT_STACK_ALIGNMENT))
#else
- #define CR_STACK_GUARD_SIZE 0
+ #define CR_STACK_GUARD_SIZE ((size_t)0)
#endif
/* global variables ***********************************************************/
@@ -584,7 +584,7 @@ cid_t coroutine_add_with_stack_size(size_t stack_size,
name, stack_size, 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);
- infof("... done, stack is [%#zx,%#zx)",
+ infof("... done, stack is [0x%p,0x%p)",
coroutine_table[child-1].stack + CR_STACK_GUARD_SIZE,
coroutine_table[child-1].stack + CR_STACK_GUARD_SIZE + stack_size);
#if CONFIG_COROUTINE_MEASURE_STACK || CONFIG_COROUTINE_PROTECT_STACK