diff --git a/src/kernel/shell.c b/src/kernel/shell.c new file mode 100644 index 0000000..6a4f36e --- /dev/null +++ b/src/kernel/shell.c @@ -0,0 +1,13 @@ +#include "shell.h" +#include "lib/stdio.h" +#include "lib/string.h" + +int shell_run(char *cmd){ + if(!strcmp(cmd, "HELLO")){ + printf("Hello!\n"); + } + else{ + printf("SHELL: Unknown command \"%s\"\n", cmd); + return 127; + } +} diff --git a/src/kernel/shell.h b/src/kernel/shell.h new file mode 100644 index 0000000..0cff83b --- /dev/null +++ b/src/kernel/shell.h @@ -0,0 +1,3 @@ +#pragma once + +int shell_run();