mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-26 02:39:55 +03:00
Krn: Fixed the disk size output function
and fixed the "end if" position when compiling extended_primary_loader git-svn-id: svn://kolibrios.org@10016 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
d8b8010bbd
commit
6fbd7cd2f9
@ -448,8 +448,10 @@ file_system_lfn:
|
||||
jz @f
|
||||
mov eax, dword[ebp+DISK.MediaInfo.Capacity]
|
||||
mov edx, dword[ebp+DISK.MediaInfo.Capacity+4]
|
||||
shld edx, eax, 9
|
||||
shl eax, 9
|
||||
mov ecx, [ebp + DISK.MediaInfo.SectorSize]
|
||||
bsf ecx, ecx
|
||||
shld edx, eax, cl
|
||||
shl eax, cl
|
||||
mov [edi+36], edx
|
||||
mov [edi+32], eax
|
||||
@@:
|
||||
|
@ -71,7 +71,6 @@ else
|
||||
jne .next_cd
|
||||
@@:
|
||||
ret
|
||||
end if
|
||||
|
||||
.hard_disk:
|
||||
sub al, '1'
|
||||
@ -82,6 +81,8 @@ end if
|
||||
mov [ecx+9], dword 'IBRI'
|
||||
mov [ecx+13], byte 0
|
||||
ret
|
||||
end if
|
||||
|
||||
endp
|
||||
|
||||
cp866toUpper:
|
||||
|
Loading…
Reference in New Issue
Block a user