Fix for Floppy/IRQ6 - broken from r.1380

git-svn-id: svn://kolibrios.org@2084 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2011-08-20 15:18:25 +00:00
parent 4190628f34
commit fe72383413

View File

@ -13,18 +13,25 @@ $Revision$
; поиск и занесение в таблицу приводов FDD ; поиск и занесение в таблицу приводов FDD
; автор Mario79 ; автор Mario79
;*************************************************** ;***************************************************
xor eax,eax xor eax,eax
mov edi,DRIVE_DATA mov edi,DRIVE_DATA
mov ecx,16384 mov ecx,16384
cld cld
rep stosd rep stosd
mov al,0x10 mov al,0x10
out 0x70,al out 0x70,al
mov cx,0xff mov cx,0xff
wait_cmos: wait_cmos:
dec cx dec cx
test cx,cx test cx,cx
jnz wait_cmos jnz wait_cmos
in al,0x71 in al,0x71
mov [DRIVE_DATA],al mov [DRIVE_DATA],al
test al,al
jz @f
in al,0x21
and al,10111111b ; Enable IRQ6
out 0x21,al
@@: