forked from KolibriOS/kolibrios
Small bugfixes with DF in debug subsystem; small improvement in function 70.0 for floppies
git-svn-id: svn://kolibrios.org@113 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
849b393cad
commit
7a1e29cbc9
@ -421,6 +421,7 @@ debugger_notify:
|
|||||||
debug_exc:
|
debug_exc:
|
||||||
; int 1 = #DB
|
; int 1 = #DB
|
||||||
save_ring3_context
|
save_ring3_context
|
||||||
|
cld
|
||||||
mov ax, os_data
|
mov ax, os_data
|
||||||
mov ds, ax
|
mov ds, ax
|
||||||
mov es, ax
|
mov es, ax
|
||||||
|
@ -246,6 +246,7 @@ exc_c:
|
|||||||
.debug:
|
.debug:
|
||||||
; we are debugged process, notify debugger and suspend ourself
|
; we are debugged process, notify debugger and suspend ourself
|
||||||
; eax=debugger PID
|
; eax=debugger PID
|
||||||
|
cld
|
||||||
movzx ecx, bl
|
movzx ecx, bl
|
||||||
push ecx
|
push ecx
|
||||||
mov ecx, [0x3010]
|
mov ecx, [0x3010]
|
||||||
|
@ -1328,14 +1328,14 @@ fs_FloppyRead:
|
|||||||
jz .eof
|
jz .eof
|
||||||
cmp edi, 0xFF8
|
cmp edi, 0xFF8
|
||||||
jae .eof
|
jae .eof
|
||||||
|
sub ebx, 512
|
||||||
|
jae .skip
|
||||||
lea eax, [edi+31]
|
lea eax, [edi+31]
|
||||||
pusha
|
pusha
|
||||||
call read_chs_sector
|
call read_chs_sector
|
||||||
popa
|
popa
|
||||||
cmp [FDC_Status], 0
|
cmp [FDC_Status], 0
|
||||||
jnz .err
|
jnz .err
|
||||||
sub ebx, 512
|
|
||||||
jae .skip
|
|
||||||
lea eax, [0xD000+ebx+512]
|
lea eax, [0xD000+ebx+512]
|
||||||
neg ebx
|
neg ebx
|
||||||
push ecx
|
push ecx
|
||||||
|
Loading…
Reference in New Issue
Block a user