From 4546c75d685475d8b9f215b588364e1d1bbd0b79 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Apr 2020 19:21:29 +0200 Subject: MUCH work in libc Also cleaned up some syscalls etc --- src/userspace/programs/init.c | 4 +++- src/userspace/programs/sh.c | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/userspace/programs') 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 #include #include 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 +#include 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(); -- cgit v1.2.3