Rev 160 | Rev 162 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 160 | Rev 161 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | ; Low-level driver for HDD access |
|
- | 2 | ; DMA support by Mario79 |
|
Line 1... | Line 3... | ||
1 | ;************************************************************************** |
3 | |
2 | ; |
4 | ;************************************************************************** |
3 | ; 0x600008 - first entry in cache list |
5 | ; |
4 | ; |
6 | ; 0x600008 - first entry in cache list |
Line 429... | Line 431... | ||
429 | call clear_application_table_status |
431 | call clear_hd_cache |
430 | mov esi,hd_read_str |
432 | call clear_application_table_status |
431 | call sys_msg_board_str |
433 | mov esi,hd_read_str |
432 | pop edx eax |
434 | call sys_msg_board_str |
433 | jmp return_01 |
435 | pop edx eax |
434 | ; jmp $ |
- | |
435 | 436 | ret |
|
Line 436... | Line 437... | ||
436 | hd_write_error: |
437 | |
Line 437... | Line 438... | ||
437 | 438 | hd_write_error: |
|
438 | call clear_hd_cache |
439 | |
439 | call clear_application_table_status |
440 | call clear_hd_cache |
440 | mov esi,hd_write_str |
441 | call clear_application_table_status |
441 | call sys_msg_board_str |
- | |
442 | jmp return_02 |
442 | mov esi,hd_write_str |
Line 443... | Line 443... | ||
443 | ; jmp $ |
443 | call sys_msg_board_str |
444 | 444 | ret |
|
445 | hd_write_error_dma: |
445 | |
446 | call clear_hd_cache |
446 | hd_write_error_dma: |
447 | call clear_application_table_status |
447 | call clear_hd_cache |
448 | mov esi, hd_write_str |
448 | call clear_application_table_status |
449 | call sys_msg_board_str |
449 | mov esi, hd_write_str |
Line 450... | Line 450... | ||
450 | pop esi |
450 | call sys_msg_board_str |
451 | jmp return_02 |
451 | pop esi |
452 | 452 | ret |
|
453 | hd_lba_error: |
453 | |
Line 518... | Line 518... | ||
518 | 518 | buf_wait_ok: |
|
Line 519... | Line 519... | ||
519 | pop edx eax |
519 | |
520 | ret |
520 | pop edx eax |
Line -... | Line 521... | ||
- | 521 | ret |
|
521 | 522 | ||
522 | align 4 |
523 | ; \begin{Mario79} |
523 | wait_for_sector_dma_ide0: |
524 | align 4 |
524 | push eax |
525 | wait_for_sector_dma_ide0: |
525 | push edx |
526 | push eax |
Line 850... | Line 851... | ||
850 | 851 | ret |
|
Line 851... | Line 852... | ||
851 | uglobal |
852 | |
852 | IDEContrRegsBaseAddr dw ? |
853 | uglobal |
853 | endg |
854 | IDEContrRegsBaseAddr dw ? |
- | 855 | endg |