aboutsummaryrefslogtreecommitdiffstats
path: root/src/standalone/upg5/thread.h
diff options
context:
space:
mode:
authorklaar36 <klas.arvidsson@liu.se>2017-03-20 17:59:45 +0100
committerklaar36 <klas.arvidsson@liu.se>2017-03-20 17:59:45 +0100
commitf9003d89b17c039ab903f622580e61925e137523 (patch)
treeb46ab4f9745c96a78685ca29b6a18ed2531205d6 /src/standalone/upg5/thread.h
parentd9ae213323d0a036b7f3594de6822413a4c312c6 (diff)
downloadpintos-rs-f9003d89b17c039ab903f622580e61925e137523.tar.gz
added given files for standalone labs
Diffstat (limited to 'src/standalone/upg5/thread.h')
-rw-r--r--src/standalone/upg5/thread.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/standalone/upg5/thread.h b/src/standalone/upg5/thread.h
new file mode 100644
index 0000000..62568ab
--- /dev/null
+++ b/src/standalone/upg5/thread.h
@@ -0,0 +1,16 @@
+#ifndef THREAD_H
+#define THREAD_H
+
+struct thread
+{
+ /* This is just a part of the Pintos Thread. */
+ void* pagedir;
+};
+
+/* Initiate the threading system. */
+void thread_init();
+
+/* Return a pointer to the currently active thread. */
+struct thread* thread_current();
+
+#endif