kern
diff src/proc.h @ 42:e6de3c6015cb
started implementing processes
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 24 Jul 2011 18:29:24 +0300 |
parents | 8ea6debe4265 |
children | 5f6c5751ae05 |
line diff
1.1 --- a/src/proc.h Tue Jun 14 01:19:07 2011 +0300 1.2 +++ b/src/proc.h Sun Jul 24 18:29:24 2011 +0300 1.3 @@ -1,14 +1,21 @@ 1.4 #ifndef PROC_H_ 1.5 #define PROC_H_ 1.6 1.7 -#include "tss.h" 1.8 +#include "asmops.h" 1.9 + 1.10 +#define MAX_PROC 128 1.11 + 1.12 +struct context { 1.13 + struct registers regs; 1.14 + uint32_t instr_ptr; 1.15 + uint32_t stack_ptr; 1.16 + uint32_t flags; 1.17 + /* TODO add FPU state */ 1.18 +}; 1.19 + 1.20 1.21 struct process { 1.22 - int id; 1.23 - 1.24 - struct task_state tss; 1.25 - 1.26 - struct process *next; 1.27 + struct context ctx; 1.28 }; 1.29 1.30 #endif /* PROC_H_ */