Rev 1477 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1477 | Rev 1595 | ||
|---|---|---|---|
| Line 77... | Line 77... | ||
| 77 | void (* enable_irqs_function)(__u16 irqmask) = NULL; |
77 | void (* enable_irqs_function)(__u16 irqmask) = NULL; |
| 78 | void (* eoi_function)(void) = NULL; |
78 | void (* eoi_function)(void) = NULL; |
| 79 | 79 | ||
| 80 | void null_interrupt(int n, istate_t *istate) |
80 | void null_interrupt(int n, istate_t *istate) |
| 81 | { |
81 | { |
| - | 82 | fault_if_from_uspace(istate, "unserviced interrupt: %d", n); |
|
| 82 | print_info_errcode(n, istate); |
83 | print_info_errcode(n, istate); |
| 83 | panic("unserviced interrupt\n"); |
84 | panic("unserviced interrupt\n"); |
| 84 | } |
85 | } |
| 85 | 86 | ||
| 86 | /** General Protection Fault. */ |
87 | /** General Protection Fault. */ |
| Line 102... | Line 103... | ||
| 102 | * the instruction. |
103 | * the instruction. |
| 103 | */ |
104 | */ |
| 104 | io_perm_bitmap_install(); |
105 | io_perm_bitmap_install(); |
| 105 | return; |
106 | return; |
| 106 | } |
107 | } |
| - | 108 | fault_if_from_uspace(istate, "general protection fault"); |
|
| 107 | } |
109 | } |
| 108 | 110 | ||
| 109 | print_info_errcode(n, istate); |
111 | print_info_errcode(n, istate); |
| 110 | panic("general protection fault\n"); |
112 | panic("general protection fault\n"); |
| 111 | } |
113 | } |
| 112 | 114 | ||
| 113 | void ss_fault(int n, istate_t *istate) |
115 | void ss_fault(int n, istate_t *istate) |
| 114 | { |
116 | { |
| - | 117 | fault_if_from_uspace(istate, "stack fault"); |
|
| 115 | print_info_errcode(n, istate); |
118 | print_info_errcode(n, istate); |
| 116 | panic("stack fault\n"); |
119 | panic("stack fault\n"); |
| 117 | } |
120 | } |
| 118 | 121 | ||
| 119 | void nm_fault(int n, istate_t *istate) |
122 | void nm_fault(int n, istate_t *istate) |
| 120 | { |
123 | { |
| 121 | #ifdef CONFIG_FPU_LAZY |
124 | #ifdef CONFIG_FPU_LAZY |
| 122 | scheduler_fpu_lazy_request(); |
125 | scheduler_fpu_lazy_request(); |
| 123 | #else |
126 | #else |
| - | 127 | fault_if_from_uspace(istate, "fpu fault"); |
|
| 124 | panic("fpu fault"); |
128 | panic("fpu fault"); |
| 125 | #endif |
129 | #endif |
| 126 | } |
130 | } |
| 127 | 131 | ||
| 128 | void tlb_shootdown_ipi(int n, istate_t *istate) |
132 | void tlb_shootdown_ipi(int n, istate_t *istate) |