aboutsummaryrefslogtreecommitdiffstats
path: root/src/standalone/lab14/thread.h
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-17 01:47:23 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-03-17 01:47:23 +0100
commit185f7edbf34d9926bb0083281fa61e800887eff8 (patch)
treef0abfd8a4be5eb951a4d7fde7a7ac367c05a6b8f /src/standalone/lab14/thread.h
parent6dab587f279e5320dc3fc2dcc9977af98a323c33 (diff)
parentb7002c53057d4ae049237786d26f00a762dbc2ea (diff)
downloadpintos-rs-185f7edbf34d9926bb0083281fa61e800887eff8.tar.gz
Merge remote-tracking branch 'upstream/master'main
Diffstat (limited to 'src/standalone/lab14/thread.h')
-rw-r--r--src/standalone/lab14/thread.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/standalone/lab14/thread.h b/src/standalone/lab14/thread.h
new file mode 100644
index 0000000..62568ab
--- /dev/null
+++ b/src/standalone/lab14/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