From f463d544793ff83efd8b95d0bce5ec80fd8170f3 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 4 Dec 2024 21:42:37 +0100 Subject: Remove old test code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is some code that I had there after messing with some of the topics on Uros' blog (https://popovicu.com/), but that became irrelevant after working on some other projects (e.g. fbos) or on other examples. This commit also brings about a major overhaul on the structure of the project. Hopefully it's now at a more ready state. Signed-off-by: Miquel Sabaté Solà --- arch/riscv/init/shell.c | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 arch/riscv/init/shell.c (limited to 'arch/riscv/init/shell.c') diff --git a/arch/riscv/init/shell.c b/arch/riscv/init/shell.c deleted file mode 100644 index d44b1c7..0000000 --- a/arch/riscv/init/shell.c +++ /dev/null @@ -1,32 +0,0 @@ -#include -#include - -int main(int argc, char *argv[]) -{ - pid_t pid = fork(); - - if (pid == -1) { - printf("Unable to fork!"); - return -1; - } - - if (pid == 0) { - // This is a child process. - int status = execl("/little_shell", "irrelevant", NULL); - - if (status == -1) { - printf("Forked process cannot start the little_shell"); - return -2; - } - } - - int count = 1; - - while (1) { - printf("Hello from the original init! %d\n", count); - count++; - sleep(10); - } - - return 0; -} -- cgit v1.2.3