library: Make sdm845lib's include the memorymap last
authorGustave Monce <gustave.monce@outlook.com>
星期五, 3 Dec 2021 17:21:38 +0000 (18:21 +0100)
committerBigfootACA <bigfoot@classfun.cn>
星期四, 16 Dec 2021 11:00:10 +0000 (19:00 +0800)
sdm845Pkg/Library/sdm845Lib/sdm845Mem.c

index bc69edf6af124b7b43195325eb156d11c810732a..34c17b7b2895f6e0986c59b52565861cc5a171af 100644 (file)
  *
  **/
 
-#include <Configuration/DeviceMemoryMap.h>
 #include <Library/ArmPlatformLib.h>
 #include <Library/DebugLib.h>
 #include <Library/HobLib.h>
 #include <Library/MemoryAllocationLib.h>
+
+// Must include last
+#include <Configuration/DeviceMemoryMap.h>
+
 /**
   Return the Virtual Memory Map of your platform
   This Virtual Memory Map is used by MemoryInitPei Module to initialize the MMU
@@ -85,4 +88,4 @@ VOID ArmPlatformGetVirtualMemoryMap(
 
   *VirtualMemoryMap = &MemoryDescriptor[0];
   // ASSERT(0);
-}
\ No newline at end of file
+}