Subversion Repositories Kolibri OS

Rev

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

Rev 9930 Rev 9941
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2011-2021. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2011-2021. 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: 9930 $
8
$Revision: 9941 $
9
 
9
 
10
; =============================================================================
10
; =============================================================================
11
; ================================= Constants =================================
11
; ================================= Constants =================================
Line 729... Line 729...
729
; Soon we will access the partition table which starts at ebx+0x1BE,
729
; Soon we will access the partition table which starts at ebx+0x1BE,
730
; so we can fill its address right now. If we do it now, then the addressing
730
; so we can fill its address right now. If we do it now, then the addressing
731
; [ecx+0x40] is shorter than [ebx+0x1fe]: one-byte offset vs 4-bytes offset.
731
; [ecx+0x40] is shorter than [ebx+0x1fe]: one-byte offset vs 4-bytes offset.
732
        lea     ecx, [ebx+0x1be]        ; ecx -> partition table
732
        lea     ecx, [ebx+0x1be]        ; ecx -> partition table
733
        cmp     word [ecx+0x40], 0xaa55
733
        cmp     word [ecx+0x40], 0xaa55
734
        jnz     .mbr_failed
734
        jnz     .notmbr
735
; 8. The MBR is treated differently from EBRs. For MBR we additionally need to
735
; 8. The MBR is treated differently from EBRs. For MBR we additionally need to
736
; execute step 10 and possibly step 11.
736
; execute step 10 and possibly step 11.
737
        test    ebp, ebp
737
        test    ebp, ebp
738
        jnz     .mbr
738
        jnz     .mbr
739
; 9. Handle GUID Partition Table
739
; 9. Handle GUID Partition Table