diff options
author | Marvin Borner | 2020-05-02 18:17:35 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-02 18:17:35 +0200 |
commit | e8f1c287a63f0f71fe463f7271834538b45f8c05 (patch) | |
tree | 6eebab2d27e610c8eeb130ddfd6a7f858ece411a /src/userspace/programs | |
parent | aa8a8811818331cf511681327e3ba95e456f0d33 (diff) |
Some work in the vfs
Diffstat (limited to 'src/userspace/programs')
-rw-r--r-- | src/userspace/programs/init.c | 7 | ||||
-rw-r--r-- | src/userspace/programs/sh.c | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c index 4127e19..732c104 100644 --- a/src/userspace/programs/init.c +++ b/src/userspace/programs/init.c @@ -1,13 +1,14 @@ #include <stdio.h> #include <stdlib.h> #include <syscall.h> +#include <unistd.h> #include <gui.h> void main() { - gui_init(); - gui_screen_clear(); - printf("Initializing userspace...\n"); + /* gui_init(); */ + /* gui_screen_clear(); */ + //printf("Initializing userspace...\n"); syscall_exec("/bin/sh"); while (1) { diff --git a/src/userspace/programs/sh.c b/src/userspace/programs/sh.c index 6913e05..f22a528 100644 --- a/src/userspace/programs/sh.c +++ b/src/userspace/programs/sh.c @@ -1,9 +1,11 @@ #include <stdio.h> +#include <unistd.h> #include <syscall.h> #include <gui.h> void main() { + write("/dev/fb", 0, 5, "hallo"); printf("[~] "); while (1) { |