summaryrefslogtreecommitdiff
path: root/kern/task.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-06-11 11:27:32 +0200
committerRichard Braun <rbraun@sceen.net>2017-06-11 11:27:32 +0200
commitb135fef80cf8f9addf5725881a2fe81cda404dfe (patch)
tree57571a9e968b277090eba9873a0ad733fea7ed06 /kern/task.c
parentcd56e2cf82938061b101cf752ce0db195c4009ed (diff)
Make the diagnostics shell optional
Diffstat (limited to 'kern/task.c')
-rw-r--r--kern/task.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kern/task.c b/kern/task.c
index d9c9f115..a5281994 100644
--- a/kern/task.c
+++ b/kern/task.c
@@ -64,6 +64,8 @@ task_init(struct task *task, const char *name, struct vm_map *map)
strlcpy(task->name, name, sizeof(task->name));
}
+#ifdef X15_SHELL
+
static void
task_shell_info(int argc, char *argv[])
{
@@ -97,6 +99,8 @@ static struct shell_cmd task_shell_cmds[] = {
"print tasks and threads"),
};
+#endif /* X15_SHELL */
+
void __init
task_setup(void)
{