X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fproc.c;h=0bc046f803533999d3f52c46b3ff87b9e6803886;hb=4ac3fd00c7407310d00e3b09fc96ac2293de674e;hp=781bd5532ab3846c0b5de51f2a5c2f48283fa09f;hpb=fa9608ffef975418d8a3421db743d26229f1f1eb;p=bertos.git diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 781bd553..0bc046f8 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -323,8 +323,9 @@ struct Process *proc_new_with_name(UNUSED_ARG(const char *, name), void (*entry) #else // CONFIG_KERN_HEAP /* Stack must have been provided by the user */ - ASSERT_VALID_PTR(stack_base); - ASSERT(stack_size); + ASSERT2(IS_VALID_PTR(stack_base), "Invalid stack pointer. Did you forget to \ + enable CONFIG_KERN_HEAP?"); + ASSERT2(stack_size, "Stack size cannot be 0."); #endif // CONFIG_KERN_HEAP