1916 |
|
|
1917 |
/* Set the "force LBA" flag. */ |
/* Set the "force LBA" flag. */ |
1918 |
*((unsigned char *) (stage1_buffer + STAGE1_FORCE_LBA)) = is_force_lba; |
*((unsigned char *) (stage1_buffer + STAGE1_FORCE_LBA)) = is_force_lba; |
1919 |
|
|
1920 |
|
/* Set the boot drive mask. This is a workaround for buggy BIOSes which |
1921 |
|
don't pass boot drive correctly. Instead, they pass 0x00 even when |
1922 |
|
booted from 0x80. */ |
1923 |
|
*((unsigned char *) (stage1_buffer + STAGE1_BOOT_DRIVE_MASK)) |
1924 |
|
= (dest_drive & BIOS_FLAG_FIXED_DISK); |
1925 |
|
|
1926 |
/* Read the first sector of Stage 2. */ |
/* Read the first sector of Stage 2. */ |
1927 |
disk_read_hook = disk_read_savesect_func; |
disk_read_hook = disk_read_savesect_func; |