kern
diff src/proc.c @ 50:1d8877d12de0
tidyed up the intr_ret bit, made it a bit more reasonably structured, and cleaned up some debugging things
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 30 Jul 2011 07:35:53 +0300 |
parents | 50730d42d2d3 |
children | b1e8c8251884 |
line diff
1.1 --- a/src/proc.c Sat Jul 30 07:21:54 2011 +0300 1.2 +++ b/src/proc.c Sat Jul 30 07:35:53 2011 +0300 1.3 @@ -78,14 +78,6 @@ 1.4 ifrm.regs = ctx->regs; 1.5 ifrm.eflags = ctx->flags; 1.6 1.7 - ifrm.err = 0xbadf00d; 1.8 - 1.9 - asm volatile ( 1.10 - "pushf\n\t" 1.11 - "popl %0\n\t" 1.12 - : "=a" (ifrm.eflags) 1.13 - ); 1.14 - 1.15 ifrm.eip = ctx->instr_ptr; 1.16 ifrm.cs = selector(SEGM_KCODE, 0); /* XXX change this when we setup the TSS */ 1.17 ifrm.esp = 0;/*ctx->stack_ptr; /* this will only be used when we switch to userspace */