kern

view 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 source
1 #ifndef PROC_H_
2 #define PROC_H_
4 #include "asmops.h"
6 #define MAX_PROC 128
8 struct context {
9 struct registers regs;
10 uint32_t instr_ptr;
11 uint32_t stack_ptr;
12 uint32_t flags;
13 /* TODO add FPU state */
14 };
17 struct process {
18 struct context ctx;
19 };
21 #endif /* PROC_H_ */