From: batt Date: Wed, 16 Feb 2011 18:21:40 +0000 (+0000) Subject: Initialize timer magic number. X-Git-Tag: 2.7.0~258 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b138078dcb2e14942de7489e84647bfd28aefd86;p=bertos.git Initialize timer magic number. There is a (very low) chance that the stack memory contains the wrong magic number causing ASSERTs to fire. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4708 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/timer.c b/bertos/drv/timer.c index d75f15ab..e3043da4 100644 --- a/bertos/drv/timer.c +++ b/bertos/drv/timer.c @@ -252,7 +252,7 @@ void timer_delayTicks(ticks_t delay) #if CONFIG_KERN_SIGNALS Timer t; - + DB(t.magic = TIMER_MAGIC_INACTIVE;) if (proc_preemptAllowed()) { ASSERT(!sig_check(SIG_SINGLE));