summaryrefslogtreecommitdiff
path: root/arch/x86/machine/boot.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-05-31 21:11:29 +0200
committerRichard Braun <rbraun@sceen.net>2017-05-31 21:11:29 +0200
commitccefd921e76ba4ca7f3d6b54691315c0718b039c (patch)
tree537221be8c7add94eb226401020126f6904e65ad /arch/x86/machine/boot.c
parenta9ce9f79a324e1b8d6d299bc4e43f02f71d0eb7f (diff)
kern/shell: separate initialization into two steps
The shell must be able to register commands early. As a result, it's now initialized in two steps, one of which starts the shell thread.
Diffstat (limited to 'arch/x86/machine/boot.c')
-rw-r--r--arch/x86/machine/boot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/machine/boot.c b/arch/x86/machine/boot.c
index b7a9b0ee..84960eb6 100644
--- a/arch/x86/machine/boot.c
+++ b/arch/x86/machine/boot.c
@@ -58,6 +58,7 @@
#include <kern/panic.h>
#include <kern/param.h>
#include <kern/percpu.h>
+#include <kern/shell.h>
#include <kern/sleepq.h>
#include <kern/sref.h>
#include <kern/syscnt.h>
@@ -473,6 +474,7 @@ boot_main(void)
uart_bootstrap();
printf_setup();
boot_show_version();
+ shell_setup();
arg_info();
uart_info();
pmap_bootstrap();