]> git.proxmox.com Git - mirror_edk2.git/commitdiff
For network dynamic media detect support: invoke Snp->GetStatus() before use Snp...
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Feb 2010 04:37:29 +0000 (04:37 +0000)
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 3 Feb 2010 04:37:29 +0000 (04:37 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9918 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c

index 40984adb3a57fb8579f6fa263fb7526b27a7ae6e..59e3a6e20f592ce9ba5b7048e0bfb6bfb2a49e67 100644 (file)
@@ -1576,6 +1576,7 @@ BdsLibNetworkBootWithMediaPresent (
   EFI_HANDLE                      Handle;\r
   EFI_SIMPLE_NETWORK_PROTOCOL     *Snp;\r
   BOOLEAN                         MediaPresent;\r
+  UINT32                          InterruptStatus;\r
 \r
   MediaPresent = FALSE;\r
 \r
@@ -1618,6 +1619,11 @@ BdsLibNetworkBootWithMediaPresent (
     if (!EFI_ERROR (Status)) {\r
       if (Snp->Mode->MediaPresentSupported) {\r
         if (Snp->Mode->State == EfiSimpleNetworkInitialized) {\r
+          //\r
+          // Invoke Snp->GetStatus() to refresh the media status\r
+          //\r
+          Snp->GetStatus (Snp, &InterruptStatus, NULL);\r
+\r
           //\r
           // In case some one else is using the SNP check to see if it's connected\r
           //\r