]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Grub4Dos copies the BPB of the first partition to the MBR. If the DriverBindingStart...
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 12 Oct 2011 02:45:02 +0000 (02:45 +0000)
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 12 Oct 2011 02:45:02 +0000 (02:45 +0000)
Let the driver binding version of Partition driver be higher than that of Fat driver to make sure the DriverBindingStart() of the Partition driver gets run before that of Fat driver so that all the partitions can be recognized.

Signed-off-by: niruiyu
Reviewed-by: erictian
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12528 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Disk/PartitionDxe/Partition.c

index 4ebff473e4fe1db053bdc4cd8cd84c6f79a93754..a51c7dd8dbba8537c41352daa5a9a0ed1a2d5ad5 100644 (file)
@@ -25,7 +25,15 @@ EFI_DRIVER_BINDING_PROTOCOL gPartitionDriverBinding = {
   PartitionDriverBindingSupported,\r
   PartitionDriverBindingStart,\r
   PartitionDriverBindingStop,\r
-  0xa,\r
+  //\r
+  // Grub4Dos copies the BPB of the first partition to the MBR. If the \r
+  // DriverBindingStart() of the Fat driver gets run before that of Partition \r
+  // driver only the first partition can be recognized.\r
+  // Let the driver binding version of Partition driver be higher than that of\r
+  // Fat driver to make sure the DriverBindingStart() of the Partition driver\r
+  // gets run before that of Fat driver so that all the partitions can be recognized.\r
+  //\r
+  0xb,\r
   NULL,\r
   NULL\r
 };\r