diff options
Diffstat (limited to 'src/userspace/programs')
-rw-r--r-- | src/userspace/programs/init.c | 4 | ||||
-rw-r--r-- | src/userspace/programs/sh.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c index 91564c0..af4f5f1 100644 --- a/src/userspace/programs/init.c +++ b/src/userspace/programs/init.c @@ -1,9 +1,11 @@ +#include <stdio.h> #include <syscall.h> #include <gui.h> void main() { - gui_init(); + printf("Initializing userspace...\n"); + //gui_init(); syscall_exec("/bin/sh"); while (1) { diff --git a/src/userspace/programs/sh.c b/src/userspace/programs/sh.c index 6dcb206..8da493e 100644 --- a/src/userspace/programs/sh.c +++ b/src/userspace/programs/sh.c @@ -1,13 +1,13 @@ #include <syscall.h> +#include <stdio.h> void main() { - syscall_putch('\n'); - syscall_putch('>'); - syscall_putch(' '); + printf("Test for printf! %d\n", 42); + printf("[~] "); while (1) { - syscall_putch(syscall_getch()); + putch(getch()); } syscall_halt(); |