search for: initial_entry

Displaying 1 result from an estimated 1 matches for "initial_entry".

2009 Nov 20
0
[PATCH] memdisk: Use boot_lba logic for booting an offset within the di
...8_t driveno; /* Drive no */ uint16_t sector_size; /* Sector size in bytes (512 vs. 2048) */ @@ -451,6 +452,9 @@ static const struct geometry *get_disk_image_geometry(uint32_t where, /* If we have an emulation mode, set the offset to the image */ if (boot_cat->initial_entry.media_type) hd_geometry.offset += boot_cat->initial_entry.load_block * 2048; + else + /* We're a no-emulation mode, so we will boot to an offset */ + hd_geometry.boot_lba = boot_cat->initial_entry.load_block * 4; if (boot_cat->initial_entry...