Rev 1882 | Rev 1937 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1882 | Rev 1888 | ||
|---|---|---|---|
| Line 214... | Line 214... | ||
| 214 | istate->cr_iip += 16; |
214 | istate->cr_iip += 16; |
| 215 | } else { |
215 | } else { |
| 216 | istate->cr_ipsr.ri++; |
216 | istate->cr_ipsr.ri++; |
| 217 | } |
217 | } |
| 218 | 218 | ||
| 219 | if (istate->in4 < SYSCALL_END) |
- | |
| 220 | return syscall_table[istate->in4](istate->in0, istate->in1, istate->in2, istate->in3); |
219 | return syscall_handler(istate->in0, istate->in1, istate->in2, istate->in3, istate->in4); |
| 221 | else |
- | |
| 222 | panic("Undefined syscall %d", istate->in4); |
- | |
| 223 | - | ||
| 224 | return -1; |
- | |
| 225 | } |
220 | } |
| 226 | 221 | ||
| 227 | void universal_handler(uint64_t vector, istate_t *istate) |
222 | void universal_handler(uint64_t vector, istate_t *istate) |
| 228 | { |
223 | { |
| 229 | fault_if_from_uspace(istate,"Interruption: %#hx (%s)\n",(uint16_t) vector, vector_to_string(vector)); |
224 | fault_if_from_uspace(istate,"Interruption: %#hx (%s)\n",(uint16_t) vector, vector_to_string(vector)); |