]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Patch BPB in ntldr and chainloader --bpb.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 18 May 2011 10:51:05 +0000 (12:51 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 18 May 2011 10:51:05 +0000 (12:51 +0200)
* grub-core/fs/fat.c: Include grub/fat.h.
(grub_fat_bpb): Moved to ...
* include/grub/fat.h (grub_fat_bpb): ... here. New file.
* grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
grub/ntfs.h.
* include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
Moved from here...
* grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
here.
* grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
New function.
(grub_chainloader_cmd): Patch BPB if --bpb is given.
(GRUB_MOD_INIT): Show --bpb.
* grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
* grub-core/normal/main.c (features): New variable.
(GRUB_MOD_INIT): Set feature_* variables.
* include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
proto.
* include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.

ChangeLog

index 9ea22d970857d44d46a748714447b8a7421085e2..e80ff7870d9391753a5612e516ae83f420353eb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
 
+       Patch BPB in ntldr and chainloader --bpb.
+
        * grub-core/fs/fat.c: Include grub/fat.h.
        (grub_fat_bpb): Moved to ...
        * include/grub/fat.h (grub_fat_bpb): ... here. New file.