diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-13 22:44:10 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-13 22:44:10 +0100 |
commit | 706c69d40fcc46e7d7f170dab932d3c7fcc7c34e (patch) | |
tree | 5248ff8712eced5bc4fdd76e9399654ce5224a37 /src/apps | |
parent | 47e6cd42f0744f6c04b8347093f6549339a856c9 (diff) | |
download | kogata-706c69d40fcc46e7d7f170dab932d3c7fcc7c34e.tar.gz kogata-706c69d40fcc46e7d7f170dab932d3c7fcc7c34e.zip |
Begin implementation of syscalls.
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; } |