Fixed work with CD broken in svn.521

git-svn-id: svn://kolibrios.org@533 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2007-06-04 09:29:32 +00:00
parent 827172f6c0
commit 3cd0677d7e
2 changed files with 7 additions and 6 deletions

View File

@ -192,6 +192,7 @@ TASK_DATA equ (OS_BASE+0x0003020)
TASK_EVENT equ (OS_BASE+0x0003020) TASK_EVENT equ (OS_BASE+0x0003020)
mouseunder equ (OS_BASE+0x0006900) mouseunder equ (OS_BASE+0x0006900)
CDDataBuf equ (OS_BASE+0x0007000)
FLOPPY_BUFF equ (OS_BASE+0x0008000) FLOPPY_BUFF equ (OS_BASE+0x0008000)
ACTIVE_PROC_STACK equ (OS_BASE+0x000A400) ;unused ACTIVE_PROC_STACK equ (OS_BASE+0x000A400) ;unused
idts equ (OS_BASE+0x000B100) idts equ (OS_BASE+0x000B100)

View File

@ -15,8 +15,6 @@ IDE_Channel_1 db 0
IDE_Channel_2 db 0 IDE_Channel_2 db 0
endg endg
CDDataBuf equ 0x7000
reserve_cd: reserve_cd:
cli cli
@ -533,7 +531,9 @@ cd_find_lfn:
call ReadCDWRetr ; ÷èòàåì ñåêòîð äèðåêòîðèè call ReadCDWRetr ; ÷èòàåì ñåêòîð äèðåêòîðèè
cmp [DevErrorCode],0 cmp [DevErrorCode],0
jne .access_denied jne .access_denied
push ebp
call cd_find_name_in_buffer call cd_find_name_in_buffer
pop ebp
jnc .found jnc .found
sub eax,2048 sub eax,2048
; äèðåêòîðèÿ çàêîí÷èëàñü? ; äèðåêòîðèÿ çàêîí÷èëàñü?