From 5a137998bf561ea0c973f1552603a045b3948265 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 31 Jul 2020 12:53:04 -0700 Subject: [PATCH] shell: SHELL_DEFINE() create kernel stacks These shell threads run in supervisor mode. Signed-off-by: Andrew Boie --- include/shell/shell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/shell/shell.h b/include/shell/shell.h index c282adaef90..a67415f9a78 100644 --- a/include/shell/shell.h +++ b/include/shell/shell.h @@ -671,7 +671,7 @@ extern void shell_print_stream(const void *user_ctx, const char *data, true, shell_print_stream); \ LOG_INSTANCE_REGISTER(shell, _name, CONFIG_SHELL_LOG_LEVEL); \ SHELL_STATS_DEFINE(_name); \ - static K_THREAD_STACK_DEFINE(_name##_stack, CONFIG_SHELL_STACK_SIZE); \ + static K_KERNEL_STACK_DEFINE(_name##_stack, CONFIG_SHELL_STACK_SIZE); \ static struct k_thread _name##_thread; \ static const Z_STRUCT_SECTION_ITERABLE(shell, _name) = { \ .default_prompt = _prompt, \