Changeset 78 for trunk/bootcode/regular/partmain.asm
- Timestamp:
- Apr 8, 2017, 12:26:16 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/partmain.asm
r76 r78 1318 1318 ; --- HIDE COMPLETED --- 1319 1319 ; So something got hidden and we have to remark a primary partition, 1320 ; if we are booting something non-primary from 1st hdd. 1321 cmp bptr [si+LocIPT_Drive], 80h 1322 ja PSP_HideAdjustPrimaryMark ; When booting any hdd, but 1st 1320 ; if we are booting something non-primary from the boot-disk. 1321 mov al, [BIOS_BootDisk] 1322 cmp bptr [si+LocIPT_Drive], al 1323 jne PSP_HideAdjustPrimaryMark ; When booting any hdd, but boot-disk 1323 1324 mov ax, wptr [si+LocIPT_AbsolutePartTable] 1324 1325 mov bx, wptr [si+LocIPT_AbsolutePartTable+2] 1325 1326 or ax, ax 1326 1327 jnz PSP_HideAdjustPrimaryMark ; or booting non-primary partition 1327 or bx, bx ; on 1st harddrive.1328 or bx, bx ; on boot-disk. 1328 1329 jz PSP_NoHideAdjustPrimaryMark 1329 1330 … … 1333 1334 xor bx, bx 1334 1335 mov cx, 0001h ; Cylinder 0, Sector 1 1335 mov dx, 0080h ; First HD, Head 0 1336 ; Load MBR 1336 xor dh, dh ; Head 0 1337 mov dl, [BIOS_BootDisk] ; Boot Disk 1338 1339 ; This uses the boot-disk and alters 'CurPartition_Location'. 1340 ; CHECKME: How does 81h being the boot-disk influences this ? 1337 1341 call DriveIO_LoadPartition ; Load Primary Partition Table 1342 1343 ; This would only be needed for very old BIOSses 1338 1344 call PART_MarkFirstGoodPrimary 1339 call DriveIO_SavePartition ; Saves the Partition-Table 1345 1346 ; CHECKME: Disabled writing back MBR with modified boot flags 1347 ; This is a safety measure now that booting AirBoot from other disks 1348 ; than 80h can occur. 1349 ;~ call DriveIO_SavePartition ; Saves the Partition-Table 1340 1350 1341 1351
Note:
See TracChangeset
for help on using the changeset viewer.