Rev 825 | Rev 1074 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 825 | Rev 958 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | #define VECTOR_KBD (IVT_IRQBASE+IRQ_KBD) |
58 | #define VECTOR_KBD (IVT_IRQBASE+IRQ_KBD) |
59 | 59 | ||
60 | #define VECTOR_SYSCALL (IVT_FREEBASE+0) |
60 | #define VECTOR_SYSCALL (IVT_FREEBASE+0) |
61 | #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE+1) |
61 | #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE+1) |
62 | 62 | ||
- | 63 | struct istate { |
|
- | 64 | __u32 edi; |
|
- | 65 | __u32 esi; |
|
- | 66 | __u32 ebp; |
|
- | 67 | __u32 esp; |
|
- | 68 | __u32 ebx; |
|
- | 69 | __u32 edx; |
|
- | 70 | __u32 ecx; |
|
- | 71 | __u32 eax; |
|
- | 72 | __u32 error_word; |
|
- | 73 | __u32 eip; |
|
- | 74 | __u32 cs; |
|
- | 75 | __u32 eflags; |
|
- | 76 | __u32 stack[]; |
|
- | 77 | }; |
|
- | 78 | ||
63 | extern void (* disable_irqs_function)(__u16 irqmask); |
79 | extern void (* disable_irqs_function)(__u16 irqmask); |
64 | extern void (* enable_irqs_function)(__u16 irqmask); |
80 | extern void (* enable_irqs_function)(__u16 irqmask); |
65 | extern void (* eoi_function)(void); |
81 | extern void (* eoi_function)(void); |
66 | 82 | ||
67 | extern void null_interrupt(int n, void *stack); |
83 | extern void null_interrupt(int n, istate_t *istate); |
68 | extern void gp_fault(int n, void *stack); |
84 | extern void gp_fault(int n, istate_t *istate); |
69 | extern void nm_fault(int n, void *stack); |
85 | extern void nm_fault(int n, istate_t *istate); |
70 | extern void ss_fault(int n, void *stack); |
86 | extern void ss_fault(int n, istate_t *istate); |
71 | extern void page_fault(int n, void *stack); |
87 | extern void page_fault(int n, istate_t *istate); |
72 | extern void syscall(int n, void *stack); |
88 | extern void syscall(int n, istate_t *istate); |
73 | extern void tlb_shootdown_ipi(int n, void *stack); |
89 | extern void tlb_shootdown_ipi(int n, istate_t *istate); |
74 | 90 | ||
75 | extern void trap_virtual_enable_irqs(__u16 irqmask); |
91 | extern void trap_virtual_enable_irqs(__u16 irqmask); |
76 | extern void trap_virtual_disable_irqs(__u16 irqmask); |
92 | extern void trap_virtual_disable_irqs(__u16 irqmask); |
77 | extern void trap_virtual_eoi(void); |
93 | extern void trap_virtual_eoi(void); |
78 | 94 |