Rev 825 | Rev 1021 | 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_TLB_SHOOTDOWN_IPI (IVT_FREEBASE+0) |
60 | #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE+0) |
61 | #define VECTOR_WAKEUP_IPI (IVT_FREEBASE+1) |
61 | #define VECTOR_WAKEUP_IPI (IVT_FREEBASE+1) |
62 | 62 | ||
- | 63 | /** This is passed to interrupt handlers */ |
|
- | 64 | struct istate { |
|
- | 65 | __u64 rax; |
|
- | 66 | __u64 rbx; |
|
- | 67 | __u64 rcx; |
|
- | 68 | __u64 rdx; |
|
- | 69 | __u64 rsi; |
|
- | 70 | __u64 rdi; |
|
- | 71 | __u64 r8; |
|
- | 72 | __u64 r9; |
|
- | 73 | __u64 r10; |
|
- | 74 | __u64 r11; |
|
- | 75 | __u64 r12; |
|
- | 76 | __u64 r13; |
|
- | 77 | __u64 r14; |
|
- | 78 | __u64 r15; |
|
- | 79 | /* These 2 items MUST be last parts of the structure */ |
|
- | 80 | __u64 rbp; |
|
- | 81 | __u64 stack[0]; /* Additional data on stack */ |
|
- | 82 | } __attribute__ ((packed)); |
|
- | 83 | ||
63 | extern void (* disable_irqs_function)(__u16 irqmask); |
84 | extern void (* disable_irqs_function)(__u16 irqmask); |
64 | extern void (* enable_irqs_function)(__u16 irqmask); |
85 | extern void (* enable_irqs_function)(__u16 irqmask); |
65 | extern void (* eoi_function)(void); |
86 | extern void (* eoi_function)(void); |
66 | 87 | ||
67 | extern void null_interrupt(int n, struct interrupt_context *ctx); |
88 | extern void null_interrupt(int n, istate_t *istate); |
68 | extern void gp_fault(int n, void *stack); |
89 | extern void gp_fault(int n, istate_t *istate); |
69 | extern void nm_fault(int n, void *stack); |
90 | extern void nm_fault(int n, istate_t *istate); |
70 | extern void ss_fault(int n, void *stack); |
91 | extern void ss_fault(int n, istate_t *istate); |
71 | extern void page_fault(int n, struct interrupt_context *ctx); |
92 | extern void page_fault(int n, istate_t *istate); |
72 | extern void syscall(int n, void *stack); |
93 | extern void syscall(int n, istate_t *istate); |
73 | extern void tlb_shootdown_ipi(int n, void *stack); |
94 | extern void tlb_shootdown_ipi(int n, istate_t *istate); |
74 | 95 | ||
75 | extern void trap_virtual_enable_irqs(__u16 irqmask); |
96 | extern void trap_virtual_enable_irqs(__u16 irqmask); |
76 | extern void trap_virtual_disable_irqs(__u16 irqmask); |
97 | extern void trap_virtual_disable_irqs(__u16 irqmask); |
77 | extern void trap_virtual_eoi(void); |
98 | extern void trap_virtual_eoi(void); |
78 | 99 |