Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3598 → Rev 3597

/kernel/trunk/blkdev/rd.inc
1252,7 → 1252,8
stosd
pop edi
xor eax, eax
movi ebx, 8
push 8
pop ebx
lea ecx, [edi+8]
.loop:
lodsb
1537,7 → 1538,8
push ecx edi
mov ecx, 8
repnz scasb
movi eax, 1 ; 1 entry
push 1
pop eax ; 1 entry
jnz .notilde
; we need ceil(strlen(esi)/13) additional entries = floor((strlen(esi)+12+13)/13) total
xor eax, eax
1762,7 → 1764,8
add esp, 20
mov [esp+16], ebx
popad
movi eax, ERROR_DISK_FULL
push ERROR_DISK_FULL
pop eax
ret
.writedir:
mov edi, eax
1954,7 → 1957,8
jb @b
.fat_err:
pop ecx
movi eax, ERROR_FAT_TABLE
push ERROR_FAT_TABLE
pop eax
stc
ret
@@:
2029,7 → 2033,8
pop edi ecx
pop esi edx
stc
movi eax, ERROR_DISK_FULL
push ERROR_DISK_FULL
pop eax
ret
 
fat_update_datetime:
/kernel/trunk/blkdev/disk.inc
335,7 → 335,8
push ebx esi ; save used registers to be stdcall
; 1. Allocate the DISK structure.
; 1a. Call the heap manager.
movi eax, sizeof.DISK
push sizeof.DISK
pop eax
call malloc
; 1b. Check the result. If allocation failed, return (go to 9) with eax = 0.
test eax, eax
607,13 → 608,15
 
; The default implementation of DISKFUNC.querymedia.
disk_default_querymedia:
movi eax, DISK_STATUS_INVALID_CALL
push DISK_STATUS_INVALID_CALL
pop eax
ret 8
 
; The default implementation of DISKFUNC.read and DISKFUNC.write.
disk_default_read:
disk_default_write:
movi eax, DISK_STATUS_INVALID_CALL
push DISK_STATUS_INVALID_CALL
pop eax
ret 20
 
; The default implementation of DISKFUNC.close, DISKFUNC.closemedia and
999,7 → 1002,8
jnz .success
; 3. No file system has recognized the volume, so just allocate the PARTITION
; structure without extra fields.
movi eax, sizeof.PARTITION
push sizeof.PARTITION
pop eax
call malloc
test eax, eax
jz .nothing