hd_drv.inc: now code should work correctly on any computer

kernel32.inc: added 'dbgstr' macro which may be useful for kernel debugging

git-svn-id: svn://kolibrios.org@162 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond)
2006-10-04 14:35:44 +00:00
parent 603863d00c
commit 2e850e52f6
3 changed files with 44 additions and 8 deletions

View File

@@ -130,17 +130,19 @@ hd_read_pio:
ret
disable_ide_int:
mov edx,[hdbase]
add edx,0x206
mov al,2
out dx,al
; mov edx,[hdbase]
; add edx,0x206
; mov al,2
; out dx,al
cli
ret
enable_ide_int:
mov edx,[hdbase]
add edx,0x206
mov al,0
out dx,al
; mov edx,[hdbase]
; add edx,0x206
; mov al,0
; out dx,al
sti
ret
align 4