kern

view src/proc.h @ 43:5f6c5751ae05

- implemented clone_vmem
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 25 Jul 2011 11:29:02 +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_ */