kern
view src/proc.h @ 46:b793b8fcba7d
apparently free_phys_page was never tested. the check for double-freeing a page
was inverted.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 28 Jul 2011 05:33:59 +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_ */