kern
diff src/proc.h @ 54:4eaecb14fe31
bringing the task switching thing into shape with proper per-process kernel stacks and shit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 14 Aug 2011 16:57:23 +0300 |
parents | 23abbeea4d5f |
children | 88a6c4e192f9 |
line diff
1.1 --- a/src/proc.h Mon Aug 08 09:53:10 2011 +0300 1.2 +++ b/src/proc.h Sun Aug 14 16:57:23 2011 +0300 1.3 @@ -7,10 +7,10 @@ 1.4 #define MAX_PROC 128 1.5 1.6 struct context { 1.7 - struct registers regs; /* saved general purpose registers */ 1.8 - uint32_t instr_ptr; /* saved eip */ 1.9 + /*struct registers regs;*/ /* saved general purpose registers */ 1.10 + /*uint32_t instr_ptr;*/ /* saved eip */ 1.11 uint32_t stack_ptr; /* saved esp */ 1.12 - uint32_t flags; /* saved eflags */ 1.13 + /*uint32_t flags;*/ /* saved eflags */ 1.14 uint32_t pgtbl_paddr; /* physical address of the page table */ 1.15 /* TODO add FPU state */ 1.16 }; 1.17 @@ -31,7 +31,9 @@ 1.18 /* extends of the process heap, increased by sbrk */ 1.19 1.20 /* first page of the user stack, extends up to KMEM_START */ 1.21 - int stack_start_pg; 1.22 + int user_stack_pg; 1.23 + /* first page of the kernel stack, (KERN_STACK_SIZE) */ 1.24 + int kern_stack_pg; 1.25 1.26 struct context ctx; 1.27