X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=bertos%2Fkern%2Fproc.c;h=0bf820393beddf364973d508ce3cb8f77de3651e;hb=af4f2c25961192e1f670f6cc2fad65d371e1b241;hp=781bd5532ab3846c0b5de51f2a5c2f48283fa09f;hpb=f35b6066ecdeffcc8998dd566b5246bdcf43c548;p=bertos.git diff --git a/bertos/kern/proc.c b/bertos/kern/proc.c index 781bd553..0bf82039 100644 --- a/bertos/kern/proc.c +++ b/bertos/kern/proc.c @@ -183,8 +183,8 @@ static void proc_initStruct(Process *proc) (void)proc; #if CONFIG_KERN_SIGNALS - proc->sig_recv = 0; - proc->sig_wait = 0; + proc->sig.recv = 0; + proc->sig.wait = 0; #endif #if CONFIG_KERN_HEAP @@ -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