Changeset 155 for trunk/bootcode/regular/partmain.asm
- Timestamp:
- Apr 8, 2017, 12:27:57 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/partmain.asm
r123 r155 1761 1761 ; 1762 1762 ; Get the drive-letter for the partition from the LVM-info. 1763 ; Returns CY=1 if AL contains drive-letter, CY=0 and AL=0 if 1764 ; no letter assigned (hidden) or no LVM info found. 1763 ; Returns CY=0 if AL contains drive-letter, '*' or 0. 1764 ; Returns CY=1 and AL=0 if no LVM info found. 1765 ; The new 'LVM_GetDriveLetter' directly uses SI, so the loading of 1766 ; DL, CX and BX is not needed. We'll leave it here for now. 1765 1767 ; 1766 1768 mov dl,byte ptr [si+LocIPT_Drive] 1767 1769 mov cx,[si+LocIPT_AbsoluteBegin+00h] 1768 1770 mov bx,[si+LocIPT_AbsoluteBegin+02h] 1771 1772 ; Now uses SI, not DL,CX,BX 1769 1773 call LVM_GetDriveLetter 1770 1774 ;//! CHECKME: No test on LVM info found 1771 1775 1772 1776 ; Save for later use. … … 1897 1901 ;~ mov al,[BPBdl] 1898 1902 ;~ sub al,3dh 1899 ;~ call LVM_SetDriveLetter ; !!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1900 1901 1903 ;~ call LVM_SetDriveLetter 1904 1905 1906 ;!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1902 1907 ; 1903 1908 ; ALWAYS SET BPB to LVM 1904 1909 ; 1905 mov dl,byte ptr [si+LocIPT_Drive] 1906 mov cx,[si+LocIPT_AbsoluteBegin+00h] 1907 mov bx,[si+LocIPT_AbsoluteBegin+02h] 1908 call LVM_GetDriveLetter ; !!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1909 add al,3dh 1910 mov bx,[PhysDiskBpbIndex] 1910 mov dl, byte ptr [si+LocIPT_Drive] 1911 mov cx, [si+LocIPT_AbsoluteBegin+00h] 1912 mov bx, [si+LocIPT_AbsoluteBegin+02h] 1913 1914 ; Now uses SI, not DL,CX,BX 1915 call LVM_GetDriveLetter 1916 ;//! CHECKME: No test on LVM info found 1917 1918 add al, 3dh 1919 mov bx, [PhysDiskBpbIndex] 1911 1920 inc bx 1912 mov es:[di+bx], al1921 mov es:[di+bx], al 1913 1922 1914 1923
Note:
See TracChangeset
for help on using the changeset viewer.