nuclear@29: #ifndef PROC_H_ nuclear@29: #define PROC_H_ nuclear@29: nuclear@42: #include "asmops.h" nuclear@42: nuclear@42: #define MAX_PROC 128 nuclear@42: nuclear@42: struct context { nuclear@42: struct registers regs; nuclear@42: uint32_t instr_ptr; nuclear@42: uint32_t stack_ptr; nuclear@42: uint32_t flags; nuclear@42: /* TODO add FPU state */ nuclear@42: }; nuclear@42: nuclear@29: nuclear@29: struct process { nuclear@42: struct context ctx; nuclear@29: }; nuclear@29: nuclear@29: #endif /* PROC_H_ */