kernel: threads: assign index no. to dynamically created threads
Kernel threads created at build time have unique indexes to map them into various bitarrays. This patch extends these indexes to dynamically created threads where the associated kernel objects are allocated at runtime. Fixes: #9081 Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
cd3e5b561d
commit
e58b65427e
3 changed files with 114 additions and 0 deletions
|
@ -25,6 +25,13 @@
|
|||
{
|
||||
*(".kobject_data.data*")
|
||||
|
||||
#ifndef LINKER_PASS2
|
||||
#ifdef CONFIG_DYNAMIC_OBJECTS
|
||||
PROVIDE(_thread_idx_map = .);
|
||||
. += CONFIG_MAX_THREAD_BYTES;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* This is also unpredictable in size, and has the same constraints.
|
||||
* On XIP systems this will get put at the very end of ROM.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue