diff options
Diffstat (limited to 'src/kernel/include/thread.h')
-rw-r--r-- | src/kernel/include/thread.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/include/thread.h b/src/kernel/include/thread.h index 8ffbb3d..fa7dc6f 100644 --- a/src/kernel/include/thread.h +++ b/src/kernel/include/thread.h @@ -18,16 +18,17 @@ typedef struct saved_context { void (*eip)(); } saved_context_t; -struct process; +typedef struct process process_t; typedef struct thread { saved_context_t ctx; pagedir_t *current_pd_d; uint32_t state; + uint64_t last_ran; region_info_t *stack_region; - struct process *proc; + process_t *proc; isr_handler_t user_ex_handler; // page fault in kernel memory accessed by user code (violation) struct thread *next_in_queue; |