From 463736887fbb6439fe5e676f6fd7990adc6bb727 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Thu, 23 Oct 2014 08:41:34 +0200 Subject: added execve syscall --- userspace/simple.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 userspace/simple.c (limited to 'userspace/simple.c') diff --git a/userspace/simple.c b/userspace/simple.c new file mode 100644 index 0000000..36f0580 --- /dev/null +++ b/userspace/simple.c @@ -0,0 +1,18 @@ +#include "syscalls.c" + +int main(int argc, char **argv) +{ + syscalls_init(); + + int i; + + for(i=0;i<10;i++) + { + write(1,"dupa\n",5); + } + + // replace with foolshell after finishing! + execve(15,0,0); +} + + -- cgit v1.2.3