aboutsummaryrefslogtreecommitdiff
path: root/src/apps/init/main.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 22:44:10 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-13 22:44:10 +0100
commit706c69d40fcc46e7d7f170dab932d3c7fcc7c34e (patch)
tree5248ff8712eced5bc4fdd76e9399654ce5224a37 /src/apps/init/main.c
parent47e6cd42f0744f6c04b8347093f6549339a856c9 (diff)
downloadkogata-706c69d40fcc46e7d7f170dab932d3c7fcc7c34e.tar.gz
kogata-706c69d40fcc46e7d7f170dab932d3c7fcc7c34e.zip
Begin implementation of syscalls.
Diffstat (limited to 'src/apps/init/main.c')
-rw-r--r--src/apps/init/main.c8
1 files changed, 6 insertions, 2 deletions
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;
}