/kernel/trunk/blkdev/hd_drv.inc |
---|
1,5 → 1,3 |
; Low-level driver for HDD access |
; DMA support by Mario79 |
;************************************************************************** |
; |
433,7 → 431,8 |
mov esi,hd_read_str |
call sys_msg_board_str |
pop edx eax |
ret |
jmp return_01 |
; jmp $ |
hd_write_error: |
441,7 → 440,8 |
call clear_application_table_status |
mov esi,hd_write_str |
call sys_msg_board_str |
ret |
jmp return_02 |
; jmp $ |
hd_write_error_dma: |
call clear_hd_cache |
449,7 → 449,7 |
mov esi, hd_write_str |
call sys_msg_board_str |
pop esi |
ret |
jmp return_02 |
hd_lba_error: |
call clear_hd_cache |
520,7 → 520,6 |
pop edx eax |
ret |
; \begin{Mario79} |
align 4 |
wait_for_sector_dma_ide0: |
push eax |
853,4 → 852,3 |
uglobal |
IDEContrRegsBaseAddr dw ? |
endg |
; \end{Mario79} |
/kernel/trunk/boot/bootcode.inc |
---|
364,8 → 364,6 |
push 0 |
pop es |
and word [es:0x9031], 0 |
; \begin{Mario79} |
; find HDD IDE DMA PCI device |
; check for PCI BIOS |
mov ax, 0xB101 |
int 0x1A |
402,7 → 400,6 |
and cx, 0xFFF0 ; clear address decode type |
mov [es:0x9031], cx |
.nopci: |
; \end{Mario79} |
mov al,0xf6 ; Ñáðîñ êëàâèàòóðû, ðàçðåøèòü ñêàíèðîâàíèå |
out 0x60,al |