From b138078dcb2e14942de7489e84647bfd28aefd86 Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 16 Feb 2011 18:21:40 +0000 Subject: [PATCH] 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 --- bertos/drv/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.25.1