Changeset 43671 in vbox
- Timestamp:
- Oct 17, 2012 2:51:11 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/eltorito.c
r43475 r43671 370 370 bios_dsk->drqp.sect_sz = 512; 371 371 372 bios_dsk->drqp.skip_a = 2048 - nbsectors * 512UL% 2048;372 bios_dsk->drqp.skip_a = (2048 - nbsectors * 512) % 2048; 373 373 374 374 if (VBOX_IS_AHCI_DEVICE(device)) … … 554 554 atapicmd.nsect = swap_16(elba - slba + 1); 555 555 556 bios_dsk->drqp.nsect = elba - slba + 1;556 bios_dsk->drqp.nsect = nbsectors; 557 557 bios_dsk->drqp.sect_sz = 512; 558 558 559 559 bios_dsk->drqp.skip_b = before * 512; 560 bios_dsk->drqp.skip_a = 2048 - nbsectors * 512UL % 2048 - bios_dsk->drqp.skip_b;560 bios_dsk->drqp.skip_a = ((4 - nbsectors % 4 - before) * 512) % 2048; 561 561 562 562 if (VBOX_IS_AHCI_DEVICE(device))
Note:
See TracChangeset
for help on using the changeset viewer.