kern

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