X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fmonitor.c;h=d0bf4a823b1bf534e17e218e262a38bd70c51a11;hb=121f4d98bd4d74629809697ab66001ebcbac76ce;hp=8da306771b927778a3ff8b3823554259d2b4b339;hpb=32d1445272120a254d77ce8d1af1f527da7a2c17;p=bertos.git diff --git a/bertos/kern/monitor.c b/bertos/kern/monitor.c index 8da30677..d0bf4a82 100644 --- a/bertos/kern/monitor.c +++ b/bertos/kern/monitor.c @@ -32,7 +32,6 @@ * * \brief Monitor to check for stack overflows * - * \version $Id$ * \author Giovanni Bajo */ @@ -147,7 +146,7 @@ static void NORETURN monitor(void) Process *p = containerof(node, Process, monitor.link); size_t free = monitor_checkStack(p->stack_base, p->stack_size); - if (free < 0x20) + if (p->stack_base && free < 0x20) kprintf("MONITOR: Free stack of process '%s' is only %u chars\n", p->monitor.name, (unsigned int)free); }