diff options
Diffstat (limited to 'src/apps')
-rw-r--r-- | src/apps/init/Makefile | 2 | ||||
-rw-r--r-- | src/apps/init/main.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/apps/init/Makefile b/src/apps/init/Makefile index e56d4c0..c54bbfb 100644 --- a/src/apps/init/Makefile +++ b/src/apps/init/Makefile @@ -1,7 +1,7 @@ OBJ = main.o -LIB = ../../lib/libkogata/libkogata.lib +LIB = ../../lib/libkogata/libkogata.lib ../../common/libc/libc.lib CFLAGS = -I ./include -I ../../common/include -I ../../lib/include diff --git a/src/apps/init/main.c b/src/apps/init/main.c index 47d7bba..6a9cd5f 100644 --- a/src/apps/init/main.c +++ b/src/apps/init/main.c @@ -1,9 +1,13 @@ #include <stdbool.h> +#include <string.h> + +#include <syscall.h> #include <debug.h> int main(int argc, char **argv) { - asm volatile("int $0x40"); - while(true); + dbg_print("Hello, world! from user process.\n"); + + return 0; } |