]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Core/DxeIplX64Peim/DxeLoadX64.c
Fix gcc build break for this module.
[mirror_edk2.git] / EdkModulePkg / Core / DxeIplX64Peim / DxeLoadX64.c
index 90e7bf4058fd305f7b0f35e38b6393780c6f9363..8e4f1126b69c1121822af0a14ef741003b3a69c5 100644 (file)
@@ -272,7 +272,7 @@ Returns:
   //\r
   //  X64 Calling Conventions requires that the stack must be aligned to 16 bytes\r
   //\r
   //\r
   //  X64 Calling Conventions requires that the stack must be aligned to 16 bytes\r
   //\r
-  TopOfStack = (EFI_PHYSICAL_ADDRESS) ALIGN_POINTER (TopOfStack, 16);\r
+  TopOfStack = (EFI_PHYSICAL_ADDRESS) (UINTN) ALIGN_POINTER (TopOfStack, 16);\r
 \r
   //\r
   // Add architecture-specifc HOBs (including the BspStore HOB)\r
 \r
   //\r
   // Add architecture-specifc HOBs (including the BspStore HOB)\r
@@ -324,8 +324,9 @@ Returns:
   ASSERT_EFI_ERROR (Status);\r
 \r
   //\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   //\r
-  // Load the GDT of Go64. Since the GDT of 32-bit Tiano locates in the BS_DATA \\r
+  // Load the GDT of Go64. Since the GDT of 32-bit Tiano locates in the BS_DATA\r
   // memory, it may be corrupted when copying FV to high-end memory \r
   // memory, it may be corrupted when copying FV to high-end memory \r
+  //\r
   LoadGo64Gdt();\r
 \r
   //\r
   LoadGo64Gdt();\r
 \r
   //\r
@@ -1061,4 +1062,5 @@ Returns:
   *Pe32Data = SectionData;\r
 \r
   return EFI_SUCCESS;\r
   *Pe32Data = SectionData;\r
 \r
   return EFI_SUCCESS;\r
-}
\ No newline at end of file
+}\r
+\r