nanokernel: Add back pointer to microkernel task

Adds a back pointer to the microkernel task to the TCS when
configured for a microkernel. This is a necessary prerequisite
to support microkernel tasks pending on nanokernel objects.

Change-Id: Ia62f9cf482ca20b008772dad80cbfd6acb6f5b7a
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2016-02-23 11:05:14 -05:00 committed by Anas Nashif
commit 8a33d98811
3 changed files with 10 additions and 0 deletions

View file

@ -197,6 +197,9 @@ struct tcs {
#ifdef CONFIG_ARC_STACK_CHECKING
uint32_t stack_top;
#endif
#ifdef CONFIG_MICROKERNEL
void *uk_task_ptr;
#endif
};
struct s_NANO {

View file

@ -139,6 +139,9 @@ struct tcs {
#ifdef CONFIG_ERRNO
int errno_var;
#endif
#ifdef CONFIG_MICROKERNEL
void *uk_task_ptr;
#endif
};
struct s_NANO {

View file

@ -677,6 +677,10 @@ struct tcs {
int errno_var;
#endif
#ifdef CONFIG_MICROKERNEL
void *uk_task_ptr;
#endif
/*
* The location of all floating point related structures/fields MUST be
* located at the end of struct tcs. This way only the