summaryrefslogtreecommitdiff
path: root/kern/task.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/task.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/task.c')
-rw-r--r--kern/task.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kern/task.c b/kern/task.c
index aaa30f44..ebdb021e 100644
--- a/kern/task.c
+++ b/kern/task.c
@@ -62,11 +62,13 @@ task_init(struct task *task, const char *name, struct vm_map *map)
#ifdef CONFIG_SHELL
static void
-task_shell_info(int argc, char *argv[])
+task_shell_info(struct shell *shell, int argc, char *argv[])
{
struct task *task;
int error;
+ (void)shell;
+
if (argc == 1) {
task_info(NULL);
return;
@@ -97,7 +99,7 @@ static struct shell_cmd task_shell_cmds[] = {
static int __init
task_setup_shell(void)
{
- SHELL_REGISTER_CMDS(task_shell_cmds);
+ SHELL_REGISTER_CMDS(task_shell_cmds, shell_get_main_cmd_set());
return 0;
}