Rev 9 | Rev 11 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9 | Rev 10 | ||
---|---|---|---|
Line 280... | Line 280... | ||
280 | call writehex |
280 | call writehex |
Line 281... | Line 281... | ||
281 | 281 | ||
282 | mov eax,[0x3000] |
282 | mov eax,[0x3000] |
283 | shl eax,8 |
283 | shl eax,8 |
- | 284 | cmp [0x80000+eax+0xB0],byte 0 |
|
284 | cmp [0x80000+eax+0xB0],byte 0 |
285 | jz @f |
- | 286 | mov esi,system_error |
|
- | 287 | call sys_msg_board_str |
|
Line 285... | Line 288... | ||
285 | jnz .system_error |
288 | @@: |
286 | 289 | ||
287 | mov eax,[0x3000] |
290 | mov eax,[0x3000] |
288 | imul eax,tss_step |
291 | imul eax,tss_step |
289 | mov eax,[eax+tss_data+l.eip-tss_sceleton] |
292 | mov eax,[eax+tss_data+l.eip-tss_sceleton] |
290 | .out_eip: |
293 | |
Line 291... | Line 294... | ||
291 | mov [write_error_to],process_eip+43 |
294 | mov [write_error_to],process_eip+43 |
292 | call writehex |
295 | call writehex |
Line 300... | Line 303... | ||
300 | mov esi,process_eip |
303 | mov esi,process_eip |
301 | call sys_msg_board_str |
304 | call sys_msg_board_str |
Line 302... | Line 305... | ||
302 | 305 | ||
Line 303... | Line -... | ||
303 | ret |
- | |
304 | - | ||
305 | .system_error: |
- | |
306 | mov esi,system_error |
- | |
307 | call sys_msg_board_str |
- | |
308 | mov eax,[0x3000] |
- | |
309 | shl eax,7 |
- | |
310 | mov eax,[eax+0x298000+l.eip-tss_sceleton] |
- | |
311 | jmp .out_eip |
- | |
Line 312... | Line 306... | ||
312 | 306 | ret |
|
Line 313... | Line 307... | ||
313 | 307 | ||
314 | 308 | ||
315 | 309 | ||
316 | ; irq1 -> hid/keyboard.inc |
310 | ; irq1 -> hid/keyboard.inc |
317 | 311 | ||
318 | 312 | ||
319 | macro irqhh [num] |
313 | macro irqh [num] |
320 | { |
314 | { |
Line 321... | Line 315... | ||
321 | forward |
315 | forward |
Line 322... | Line 316... | ||
322 | p_irq#num : |
316 | p_irq#num : |
323 | pushad |
317 | pushad |
324 | mov edi, num |
318 | mov edi, num |
325 | jmp irq_c |
319 | jmp irq_c |
Line 357... | Line 351... | ||
357 | pop es ds |
351 | pop es ds |
358 | popad |
352 | popad |
359 | iret |
353 | iret |
Line 360... | Line -... | ||
360 | - | ||
361 | 354 | ||
Line 362... | Line 355... | ||
362 | 355 | ||
Line 363... | Line 356... | ||
363 | irqhandler: |
356 | irqhandler: |