aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/init/shell.c
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-04 21:42:37 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-12-05 16:02:51 +0100
commitf463d544793ff83efd8b95d0bce5ec80fd8170f3 (patch)
tree9dc6cfe5d5d9a5abb9bbe1ba401dc22308c7649e /arch/riscv/init/shell.c
parentbab3fdfd61b3488e1879bc3e53ac17f41d2e8b67 (diff)
downloadfarga-f463d544793ff83efd8b95d0bce5ec80fd8170f3.tar.gz
farga-f463d544793ff83efd8b95d0bce5ec80fd8170f3.zip
Remove old test code
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à <mikisabate@gmail.com>
Diffstat (limited to 'arch/riscv/init/shell.c')
-rw-r--r--arch/riscv/init/shell.c32
1 files changed, 0 insertions, 32 deletions
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 <stdio.h>
-#include <unistd.h>
-
-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;
-}