X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fproc.c;h=38cbc4decfb285fe1ec81831472cc1718fbb2c32;hb=33d48af0258dd55e1d2b51a4ae2f87401dcb00e9;hp=f28b9819fa88e3d3251c427e2df318efa352475c;hpb=d00ca36c2068d8b3099e956d59fcc314bf4b21b4;p=bertos.git diff --git a/kern/proc.c b/kern/proc.c index f28b9819..38cbc4de 100644 --- a/kern/proc.c +++ b/kern/proc.c @@ -175,7 +175,7 @@ struct Process *proc_new_with_name(UNUSED(const char *, name), void (*entry)(voi #if CONFIG_KERN_MONITOR /* Fill-in the stack with a special marker to help debugging */ - memset(stack_base, CONFIG_KERN_STACKFILLCODE, stacksize / sizeof(cpustack_t)); + memset(stack_base, (char)CONFIG_KERN_STACKFILLCODE, stacksize); #endif /* Initialize the process control block */