forked from KolibriOS/kolibrios
Rustem Gimadutdinov (rgimad)
73864ff1d7
git-svn-id: svn://kolibrios.org@9019 a494cfbc-eb01-0410-851d-a64ba20cac60
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;; ;;
|
|
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
;; ;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
$Revision$
|
|
|
|
|
|
;***************************************************
|
|
; clear the DRIVE_DATA table,
|
|
; search for FDDs and add them into the table
|
|
; author - Mario79
|
|
;***************************************************
|
|
xor eax, eax
|
|
mov edi, DRIVE_DATA
|
|
mov ecx, DRIVE_DATA_SIZE/4
|
|
cld
|
|
rep stosd
|
|
|
|
mov al, 0x10
|
|
out 0x70, al
|
|
mov cx, 0xff
|
|
wait_cmos:
|
|
dec cx
|
|
test cx, cx
|
|
jnz wait_cmos
|
|
in al, 0x71
|
|
mov [DRIVE_DATA], al
|
|
test al, al
|
|
jz @f
|
|
|
|
stdcall attach_int_handler, 6, FDCInterrupt, 0
|
|
DEBUGF 1, "K : Set IDE IRQ6 return code %x\n", eax
|
|
call floppy_init
|
|
@@:
|
|
|