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:
parent
f0948a4cbc
commit
8a33d98811
3 changed files with 10 additions and 0 deletions
|
@ -197,6 +197,9 @@ struct tcs {
|
||||||
#ifdef CONFIG_ARC_STACK_CHECKING
|
#ifdef CONFIG_ARC_STACK_CHECKING
|
||||||
uint32_t stack_top;
|
uint32_t stack_top;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_MICROKERNEL
|
||||||
|
void *uk_task_ptr;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct s_NANO {
|
struct s_NANO {
|
||||||
|
|
|
@ -139,6 +139,9 @@ struct tcs {
|
||||||
#ifdef CONFIG_ERRNO
|
#ifdef CONFIG_ERRNO
|
||||||
int errno_var;
|
int errno_var;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_MICROKERNEL
|
||||||
|
void *uk_task_ptr;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct s_NANO {
|
struct s_NANO {
|
||||||
|
|
|
@ -677,6 +677,10 @@ struct tcs {
|
||||||
int errno_var;
|
int errno_var;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_MICROKERNEL
|
||||||
|
void *uk_task_ptr;
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The location of all floating point related structures/fields MUST be
|
* The location of all floating point related structures/fields MUST be
|
||||||
* located at the end of struct tcs. This way only the
|
* located at the end of struct tcs. This way only the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue