summaryrefslogtreecommitdiff
path: root/kern/thread.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
committerRichard Braun <rbraun@sceen.net>2018-07-25 01:16:24 +0200
commitd3e43f5bfda0bdad7a829a7ed8c1272a395b196b (patch)
tree897e7851a995f243afdfa5999d786541781f56a9 /kern/thread.c
parent3a175471f4246c429e89460ab42cd6640427532a (diff)
kern/{fmt,shell}: update from upstream
The shell module has been "objectified" and now supports multiple instances with shareable command sets.
Diffstat (limited to 'kern/thread.c')
-rw-r--r--kern/thread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/thread.c b/kern/thread.c
index a8f58b39..6625163a 100644
--- a/kern/thread.c
+++ b/kern/thread.c
@@ -2220,7 +2220,7 @@ thread_setup_runq(struct thread_runq *runq)
* tracing.
*/
static void
-thread_shell_trace(int argc, char *argv[])
+thread_shell_trace(struct shell *shell, int argc, char *argv[])
{
const char *task_name, *thread_name;
struct thread_runq *runq;
@@ -2229,6 +2229,8 @@ thread_shell_trace(int argc, char *argv[])
struct task *task;
int error;
+ (void)shell;
+
if (argc != 3) {
error = EINVAL;
goto error;
@@ -2278,7 +2280,7 @@ static struct shell_cmd thread_shell_cmds[] = {
static int __init
thread_setup_shell(void)
{
- SHELL_REGISTER_CMDS(thread_shell_cmds);
+ SHELL_REGISTER_CMDS(thread_shell_cmds, shell_get_main_cmd_set());
return 0;
}