summaryrefslogtreecommitdiff
path: root/userspace
diff options
context:
space:
mode:
Diffstat (limited to 'userspace')
-rw-r--r--userspace/Makefile4
-rw-r--r--userspace/task1.c11
-rw-r--r--userspace/task2.c11
3 files changed, 25 insertions, 1 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index 5d94a41..53dab5f 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -7,7 +7,7 @@ CFLAGS+=-w
CFLAGS+=-std=gnu11
CFLAGS+=-O3
-PROGS=foolshell ls simple brainfuck add checker clear
+PROGS=foolshell ls simple brainfuck add checker clear task1 task2
ext2.img: $(PROGS)
dd if=/dev/zero of=ext2.img bs=512 count=5000
@@ -32,6 +32,8 @@ foolshell: foolshell.o
simple: simple.o
add: add.o
checker: checker.o
+task1: task1.o
+task2: task2.o
clean:
-rm *.o $(PROGS) ext2.img
diff --git a/userspace/task1.c b/userspace/task1.c
new file mode 100644
index 0000000..ed686c4
--- /dev/null
+++ b/userspace/task1.c
@@ -0,0 +1,11 @@
+int main(int argc, char **argv)
+{
+ while(1)
+ {
+ write(1,"task 1 \n",8);
+ }
+
+ return 0;
+}
+
+
diff --git a/userspace/task2.c b/userspace/task2.c
new file mode 100644
index 0000000..f1164d7
--- /dev/null
+++ b/userspace/task2.c
@@ -0,0 +1,11 @@
+int main(int argc, char **argv)
+{
+ while(1)
+ {
+ write(1,"task 2 \n",8);
+ }
+
+ return 0;
+}
+
+