From f9003d89b17c039ab903f622580e61925e137523 Mon Sep 17 00:00:00 2001 From: klaar36 Date: Mon, 20 Mar 2017 17:59:45 +0100 Subject: added given files for standalone labs --- src/standalone/upg5/thread.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/standalone/upg5/thread.h (limited to 'src/standalone/upg5/thread.h') 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 -- cgit v1.2.1