kern

diff src/intr.c @ 47:f65b348780e3

continuing with the process implementation. not done yet, panics.
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 28 Jul 2011 05:43:04 +0300
parents e6de3c6015cb
children b1e8c8251884
line diff
     1.1 --- a/src/intr.c	Thu Jul 28 05:33:59 2011 +0300
     1.2 +++ b/src/intr.c	Thu Jul 28 05:43:04 2011 +0300
     1.3 @@ -35,21 +35,6 @@
     1.4  #define OCW2_EOI	(1 << 5)
     1.5  
     1.6  
     1.7 -/* structure used to pass the interrupt stack frame from the
     1.8 - * entry points to the C dispatch function.
     1.9 - */
    1.10 -struct intr_frame {
    1.11 -	/* registers pushed by pusha in intr_entry_* */
    1.12 -	struct registers regs;
    1.13 -	/* interrupt number and error code pushed in intr_entry_* */
    1.14 -	uint32_t inum, err;
    1.15 -	/* pushed by CPU during interrupt entry */
    1.16 -	uint32_t eip, cs, eflags;
    1.17 -	/* pushed by CPU during interrupt entry from user space */
    1.18 -	uint32_t esp, ss;
    1.19 -};
    1.20 -
    1.21 -
    1.22  static void init_pic(int offset);
    1.23  static void gate_desc(desc_t *desc, uint16_t sel, uint32_t addr, int dpl, int type);
    1.24  static void set_intr_entry(int num, void (*handler)(void));