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
|
@ -40,6 +40,7 @@ architecture.
|
|||
#include <arch/cpu.h>
|
||||
#include <toolchain.h>
|
||||
#include <nanok.h>
|
||||
#include <wait_q.h>
|
||||
|
||||
tNANO _nanokernel = {0};
|
||||
|
||||
|
@ -146,6 +147,8 @@ void _NewContext(
|
|||
pCcs->preempReg.psp = (uint32_t)pInitCtx;
|
||||
pCcs->basepri = 0;
|
||||
|
||||
_nano_timeout_ccs_init(pCcs);
|
||||
|
||||
/* initial values in all other registers/CCS entries are irrelevant */
|
||||
|
||||
CONTEXT_MONITOR_INIT(pCcs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue