shell: Add dedicated section for shell instances
Addded dedicated section for shell instances. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
b6372ea406
commit
8a63c9c8c8
2 changed files with 8 additions and 1 deletions
|
@ -147,6 +147,13 @@
|
|||
__log_backends_end = .;
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
SECTION_DATA_PROLOGUE(shell_sections,,)
|
||||
{
|
||||
_shell_list_start = .;
|
||||
KEEP(*(SORT(._shell.static.*)));
|
||||
_shell_list_end = .;
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
SECTION_DATA_PROLOGUE(shell_root_cmds_sections,,)
|
||||
{
|
||||
__shell_root_cmds_start = .;
|
||||
|
|
|
@ -629,7 +629,7 @@ extern void shell_print_stream(const void *user_ctx, const char *data,
|
|||
SHELL_STATS_DEFINE(_name); \
|
||||
static K_THREAD_STACK_DEFINE(_name##_stack, CONFIG_SHELL_STACK_SIZE); \
|
||||
static struct k_thread _name##_thread; \
|
||||
static const struct shell _name = { \
|
||||
static const Z_STRUCT_SECTION_ITERABLE(shell, _name) = { \
|
||||
.default_prompt = _prompt, \
|
||||
.iface = _transport_iface, \
|
||||
.ctx = &UTIL_CAT(_name, _ctx), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue