From: bernie Date: Mon, 18 Feb 2008 15:22:25 +0000 (+0000) Subject: Pass stack size in _bytes_ to memset() for stack filling. X-Git-Tag: 1.0.0~129 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=38514f7549b548a7f0316aa8b4cd6a7eb50d2bb5;p=bertos.git Pass stack size in _bytes_ to memset() for stack filling. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1123 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 */