kern

annotate 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
rev   line source
nuclear@29 1 #ifndef PROC_H_
nuclear@29 2 #define PROC_H_
nuclear@29 3
nuclear@43 4 #include <inttypes.h>
nuclear@42 5 #include "asmops.h"
nuclear@42 6
nuclear@42 7 #define MAX_PROC 128
nuclear@42 8
nuclear@42 9 struct context {
nuclear@42 10 struct registers regs;
nuclear@42 11 uint32_t instr_ptr;
nuclear@42 12 uint32_t stack_ptr;
nuclear@42 13 uint32_t flags;
nuclear@43 14 uint32_t pgtbl_paddr;
nuclear@42 15 /* TODO add FPU state */
nuclear@42 16 };
nuclear@42 17
nuclear@29 18
nuclear@29 19 struct process {
nuclear@42 20 struct context ctx;
nuclear@29 21 };
nuclear@29 22
nuclear@29 23 #endif /* PROC_H_ */