aboutsummaryrefslogtreecommitdiff
path: root/kernel/include/thread.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2014-12-16 22:35:09 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2014-12-16 22:35:09 +0100
commit8c247352543c50204314efeb988f9f59d84f5019 (patch)
treeef7d8775c9c51eddbc1e14e57e0e654b350efe7c /kernel/include/thread.h
parent0cafda1270f765e98c6ab5b298d28fd820b0e68c (diff)
downloadmacroscope-8c247352543c50204314efeb988f9f59d84f5019.tar.gz
macroscope-8c247352543c50204314efeb988f9f59d84f5019.zip
Add simple reference counted buffer structure.
Diffstat (limited to 'kernel/include/thread.h')
-rw-r--r--kernel/include/thread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/include/thread.h b/kernel/include/thread.h
index 4c5f337..757ba00 100644
--- a/kernel/include/thread.h
+++ b/kernel/include/thread.h
@@ -17,6 +17,7 @@ typedef struct saved_context {
void (*eip)();
} saved_context_t;
+struct process;
typedef struct thread {
saved_context_t ctx;
pagedir_t *current_pd_d;
@@ -25,7 +26,7 @@ typedef struct thread {
region_info_t *stack_region;
- void* more_data;
+ struct process *proc; // process : L1 data structure
struct thread *next_in_queue;
} thread_t;