nanokernel: add and initialize timeout fields in ccs/s_NANO
s_NANO contains the timeout queue, and each ccs needs a struct _nano_timeout object that gets linked in the nanokernel timeout queue. Change-Id: Iad027eaaebcffe190e95f0b9d068f047062559c2 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
bb660ae965
commit
2672025969
7 changed files with 40 additions and 0 deletions
|
@ -103,6 +103,13 @@ extern void _InitHardware(void);
|
|||
|
||||
extern void _Ctors(void);
|
||||
|
||||
#ifdef CONFIG_NANO_TIMEOUTS
|
||||
#include <misc/dlist.h>
|
||||
#define initialize_nano_timeouts() sys_dlist_init(&_nanokernel.timeout_q)
|
||||
#else
|
||||
#define initialize_nano_timeouts() do { } while ((0))
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* nano_init - initializes nanokernel data structures
|
||||
|
@ -166,6 +173,8 @@ static void nano_init(tCCS *dummyOutContext)
|
|||
|
||||
_nanokernel.task->flags |= ESSENTIAL;
|
||||
|
||||
initialize_nano_timeouts();
|
||||
|
||||
/* perform any architecture-specific initialization */
|
||||
|
||||
nanoArchInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue