kern

view src/proc.h @ 45:b8f02479e3f4

mainly additions to the VM to support processes etc. not complete
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 26 Jul 2011 02:41:33 +0300
parents e6de3c6015cb
children f65b348780e3
line source
1 #ifndef PROC_H_
2 #define PROC_H_
4 #include <inttypes.h>
5 #include "asmops.h"
7 #define MAX_PROC 128
9 struct context {
10 struct registers regs;
11 uint32_t instr_ptr;
12 uint32_t stack_ptr;
13 uint32_t flags;
14 uint32_t pgtbl_paddr;
15 /* TODO add FPU state */
16 };
19 struct process {
20 struct context ctx;
21 };
23 #endif /* PROC_H_ */