Revision: 16554
          http://sourceforge.net/p/edk2/code/16554
Author:   hhtian
Date:     2014-12-23 08:35:20 +0000 (Tue, 23 Dec 2014)
Log Message:
-----------
MdeModulePkg: fix mixed dos and linux EOL format issue

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hot Tian <[email protected]>

Modified Paths:
--------------
    branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Gcd/Gcd.c

Modified: branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Gcd/Gcd.c
===================================================================
--- branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Gcd/Gcd.c        2014-12-23 
08:33:49 UTC (rev 16553)
+++ branches/UDK2014.SP1/MdeModulePkg/Core/Dxe/Gcd/Gcd.c        2014-12-23 
08:35:20 UTC (rev 16554)
@@ -812,22 +812,22 @@
         goto Done;
       }
       break;
-    //
-    // Set capabilities operation
-    //
-    case GCD_SET_CAPABILITIES_MEMORY_OPERATION:
-      if ((BaseAddress & EFI_PAGE_MASK) != 0 || (Length & EFI_PAGE_MASK) != 0) 
{
-        Status = EFI_INVALID_PARAMETER;
-
-        goto Done;
+    //
+    // Set capabilities operation
+    //
+    case GCD_SET_CAPABILITIES_MEMORY_OPERATION:
+      if ((BaseAddress & EFI_PAGE_MASK) != 0 || (Length & EFI_PAGE_MASK) != 0) 
{
+        Status = EFI_INVALID_PARAMETER;
+
+        goto Done;
       }
-      //
+      //
       // Current attributes must still be supported with new capabilities
-      //
-      if ((Capabilities & Entry->Attributes) != Entry->Attributes) {
-        Status = EFI_UNSUPPORTED;
-        goto Done;
-      }
+      //
+      if ((Capabilities & Entry->Attributes) != Entry->Attributes) {
+        Status = EFI_UNSUPPORTED;
+        goto Done;
+      }
       break;
     }
     Link = Link->ForwardLink;
@@ -916,8 +916,8 @@
     //
     // Set capabilities operation
     //
-    case GCD_SET_CAPABILITIES_MEMORY_OPERATION:
-      Entry->Capabilities = Capabilities;
+    case GCD_SET_CAPABILITIES_MEMORY_OPERATION:
+      Entry->Capabilities = Capabilities;
       break;
     }
     Link = Link->ForwardLink;
@@ -1606,16 +1606,16 @@
   IN UINT64                Capabilities
   )
 {
-  EFI_STATUS    Status;
-
+  EFI_STATUS    Status;
+
   DEBUG ((DEBUG_GCD, 
"GCD:CoreSetMemorySpaceCapabilities(Base=%016lx,Length=%016lx)\n", BaseAddress, 
Length));
-  DEBUG ((DEBUG_GCD, "  Capabilities  = %016lx\n", Capabilities));
-
-  Status = CoreConvertSpace (GCD_SET_CAPABILITIES_MEMORY_OPERATION, 
(EFI_GCD_MEMORY_TYPE) 0, (EFI_GCD_IO_TYPE) 0, BaseAddress, Length, 
Capabilities, 0);
+  DEBUG ((DEBUG_GCD, "  Capabilities  = %016lx\n", Capabilities));
+
+  Status = CoreConvertSpace (GCD_SET_CAPABILITIES_MEMORY_OPERATION, 
(EFI_GCD_MEMORY_TYPE) 0, (EFI_GCD_IO_TYPE) 0, BaseAddress, Length, 
Capabilities, 0);
   if (!EFI_ERROR(Status)) {
-    CoreUpdateMemoryAttributes(BaseAddress, RShiftU64(Length, EFI_PAGE_SHIFT), 
Capabilities);
-  }
-
+    CoreUpdateMemoryAttributes(BaseAddress, RShiftU64(Length, EFI_PAGE_SHIFT), 
Capabilities);
+  }
+
   return Status;
 }
 


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to