aboutsummaryrefslogtreecommitdiff
path: root/user/usr/bin/kshell.c
diff options
context:
space:
mode:
Diffstat (limited to 'user/usr/bin/kshell.c')
-rw-r--r--user/usr/bin/kshell.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/user/usr/bin/kshell.c b/user/usr/bin/kshell.c
new file mode 100644
index 0000000..c22cff0
--- /dev/null
+++ b/user/usr/bin/kshell.c
@@ -0,0 +1,8 @@
+/*
+ * Runs the in-kernel shell.
+ */
+
+#include "weenix/syscall.h"
+#include "weenix/trap.h"
+
+int main(int argc, char **argv) { return (int)trap(SYS_kshell, (uint32_t)0); }