Changeset 33
- Timestamp:
- Jan 13, 2013, 8:58:15 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BOOTCODE/REGULAR/PARTMAIN.ASM
r32 r33 1348 1348 mov dh,al ; Save PRI or LOG 1349 1349 1350 ; Save for later use1350 ; Save PRI/LOG indicator for later use 1351 1351 push dx 1352 1352 … … 1375 1375 pop si 1376 1376 1377 ; Point BX to LVM 1st drive-letter1378 mov bx,offset [LVMSector]1379 add bx,LocLVM_VolumeLetter21380 1381 1377 1382 1378 ; Restore PRI/LOG partition indicator and index … … 1395 1391 popa 1396 1392 1397 ; Calculate index for driveletter of PRI partition1398 mov ax,03ch ; Length of LVM record ?1399 mul dl ; Multiply by index1400 add bx,ax ; Point to LVM-driveletter1401 1402 1393 1403 1394 is_not_pri: 1404 1395 1405 ; 1406 ; At this point BX points to the drive-letter related to the 1396 1397 ; 1398 ; At this stage the LVM-info sector has been loaded at [LVMSector]. 1399 ; From here we look for an LVM entry for the partition. 1400 ; If one is found, based on it's LBA-start, it's driveletter is used 1401 ; in case byte 25h is zero. 1402 ; 1403 1404 1405 ; Search for the partition in the LVM info. 1406 ; If found, CY is set and SI points to LVM entry. 1407 push si 1408 mov dl,bptr [si+LocIPT_Drive] 1409 mov ax,[si+LocIPT_AbsoluteBegin+00h] 1410 mov dx,[si+LocIPT_AbsoluteBegin+02h] 1411 mov si,offset [LVMSector] 1412 call LVM_SearchForPartition 1413 mov bx,si ; BX now points to LVM entry 1414 mov dx,0 ; Setup null driveletter 1415 pop si 1416 1417 ; Oops, no valid LVM record was used so we have a null driveletter. 1418 jnc null_lvm_dl 1419 1420 ; 1421 ; At this point BX points to the LVM-entry related to the 1407 1422 ; partition, whether it was a logical or a primary one. 1408 ; We convert it ('C'=80h etc) and put it in DH for later use. 1409 mov dh,[bx] 1423 ; We get the drive-letter and convert it ('C'=80h etc) 1424 ; and put it in DH for later use. 1425 ; 1426 mov dh,[bx+LocLVM_VolumeLetter] 1410 1427 ; Don't convert if zero 1411 1428 test dh,dh
Note:
See TracChangeset
for help on using the changeset viewer.