grub/grub-core/loader/i386/pc
C. Masloch c225298038 chainloader: patch in BPB's sectors_per_track and num_heads
These fields must reflect the ROM-BIOS's geometry for CHS-based
loaders to correctly load their next stage. Most loaders do not
query the ROM-BIOS (Int13.08), relying on the BPB fields to hold
the correct values already.

Tested with lDebug booted in qemu via grub2's
FreeDOS direct loading support, refer to
https://bitbucket.org/ecm/ldosboot + https://bitbucket.org/ecm/ldebug
(For this test, lDebug's iniload.asm must be assembled with
-D_QUERY_GEOMETRY=0 to leave the BPB values provided by grub.)

Signed-off-by: C. Masloch <pushbx@38.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2018-03-14 13:23:27 +01:00
..
chainloader.c chainloader: patch in BPB's sectors_per_track and num_heads 2018-03-14 13:23:27 +01:00
freedos.c Mark few forgotten strings for translation. 2013-05-07 11:41:47 +02:00
linux.c i386: make struct linux_kernel_header architecture specific 2018-02-23 22:42:42 +01:00
ntldr.c Improve gettext support. Stylistic fixes and error handling fixes while 2012-02-08 19:26:01 +01:00
plan9.c plan9: Add missing grub_device_close. 2015-01-26 09:45:37 +01:00
pxechainloader.c Terminate UNDI and PXE before launching the payload to avoid problems 2012-04-11 22:32:31 +02:00
truecrypt.c truecrypt: fix memory leak 2016-01-12 21:52:51 +03:00