Changeset 119 for trunk/bootcode/regular/partscan.asm
- Timestamp:
- Apr 8, 2017, 12:27:18 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/partscan.asm
r117 r119 61 61 62 62 push dx 63 64 ; ================================================ [ Locate Master LVM Sector ] 65 66 ; Locate the Master LVM sector for this disk. 67 ; If one is found, BX:AX will hold its LBA address, otherwise zero. 68 ; Note that if LVM is set to be ignored in the SETUP, checking for a 69 ; signature will not be done and thus no Master LVM sector will be 70 ; found. 71 call DriveIO_LocateMasterLVMSector 72 73 ; Put the LBA address in the BSS location for this disk 74 xor bh, bh ; Zero upper part of index 75 mov bl, dl ; Get BIOS drive-number 76 and bl, 7fh ; Strip bit 7 77 shl bx, 3 ; Mult by 4 for DWORD 78 add bx, offset [LVM_MasterSecs] ; Add the base offset 79 mov [bx+00h], ax ; Store LBA low 80 xor ax, ax ; LBA high always zero 81 mov [bx+02h], ax ; Store LBA high 82 83 ;! 84 ;! DEBUG_BLOCK 85 ;! Check stored Master LVM LBA address. 86 ;! 87 IFDEF AUX_DEBUG 88 IF 1 89 pushf 90 pusha 91 push si 92 mov si, offset $+5 93 jmp @F 94 db 10,'[Master LVM Sector]',10,0 95 @@: 96 call AuxIO_Print 97 pop si 98 xor bh, bh 99 mov bl, dl 100 and bl, 7fh 101 shl bx, 3 102 add bx, offset [LVM_MasterSecs] 103 mov al, [bx] 104 mov ah, dl 105 call DEBUG_DumpRegisters 106 popa 107 popf 108 ENDIF 109 ENDIF 110 111 ; ========================================================= [ Scan Partitions ] 112 63 113 call PARTSCAN_ScanDriveForPartitions 64 114 pop dx
Note:
See TracChangeset
for help on using the changeset viewer.