Subversion Repositories Kolibri OS

Rev

Rev 9894 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9894 Rev 10016
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
4
;;  Distributed under terms of the GNU General Public License.  ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 9894 $
8
$Revision: 10016 $
9
 
9
 
10
ERROR_SUCCESS        = 0
10
ERROR_SUCCESS        = 0
11
ERROR_DISK_BASE      = 1
11
ERROR_DISK_BASE      = 1
Line 446... Line 446...
446
.deviceInfo:
446
.deviceInfo:
447
        test    ebp, ebp
447
        test    ebp, ebp
448
        jz      @f
448
        jz      @f
449
        mov     eax, dword[ebp+DISK.MediaInfo.Capacity]
449
        mov     eax, dword[ebp+DISK.MediaInfo.Capacity]
450
        mov     edx, dword[ebp+DISK.MediaInfo.Capacity+4]
450
        mov     edx, dword[ebp+DISK.MediaInfo.Capacity+4]
-
 
451
        mov     ecx, [ebp + DISK.MediaInfo.SectorSize]
-
 
452
        bsf     ecx, ecx
451
        shld    edx, eax, 9
453
        shld    edx, eax, cl
452
        shl     eax, 9
454
        shl     eax, cl
453
        mov     [edi+36], edx
455
        mov     [edi+36], edx
454
        mov     [edi+32], eax
456
        mov     [edi+32], eax
455
@@:
457
@@:
456
        and     dword[image_of_eax], 0
458
        and     dword[image_of_eax], 0
457
        ret
459
        ret