summaryrefslogtreecommitdiff
path: root/userspace
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-28 01:52:07 +0200
committerMiguel <m.i@gmx.at>2018-09-28 01:52:07 +0200
commit4ddca59e2c07a98988ffb07571d2b35c4c90f5ac (patch)
tree6ee7ea0f8c7c6190433d45fd1714aef8e39a1a39 /userspace
parent9a29d452d03a63f39a80c0640b7747d8508568e2 (diff)
reactiveate threads. allow user space access to framebuffer
Diffstat (limited to 'userspace')
-rw-r--r--userspace/threading.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/userspace/threading.c b/userspace/threading.c
new file mode 100644
index 0000000..2ceaad3
--- /dev/null
+++ b/userspace/threading.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include "newcalls.h"
+
+int main()
+{
+ int thread=_clone(); // we want two threads
+
+ if(thread!=0) // thread 1
+ {
+ while(1) printf("a\n");
+ }
+ else // thread2
+ {
+ while(1) printf("b\n");
+ }
+
+}
+