]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg: Move PcdStandalone from Feature PCD to Fixed PCD
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Jul 2011 14:21:12 +0000 (14:21 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 1 Jul 2011 14:21:12 +0000 (14:21 +0000)
Feature PCDs cannot be used in assembly files.
The PcdStandalone PCD is needed in one of the assembly file of the
ArmPlatformPkg/PrePi module.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11952 6f19259b-4bc3-4df7-8a09-765794883524

15 files changed:
ArmPlatformPkg/ArmPlatformPkg.dec
ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A8.dsc
ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc
ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbLib.inf
ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbSecLib.inf
ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf
ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressSecLib.inf
ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.c
ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
ArmPlatformPkg/PrePeiCore/MainMPCore.c
ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
ArmPlatformPkg/Sec/Sec.c
ArmPlatformPkg/Sec/Sec.inf

index 93d337eb0eba0a05041c58db445006bf9aaae354..2a5c15e4b58bac67b8b0ed8e76d1ca3d2a619957 100644 (file)
   gVariableRuntimeDxeFileGuid = { 0xcbd2e4d5, 0x7068, 0x4ff5, { 0xb4, 0x62, 0x98, 0x22, 0xb4, 0xad, 0x8d, 0x60 } }
 
 [PcdsFeatureFlag.common]
-  gArmPlatformTokenSpaceGuid.PcdStandalone|FALSE|BOOLEAN|0x00000001
   # Set this PCD to TRUE to map NORFlash at 0x0. FALSE means the DRAM is mapped at 0x0.
   gArmPlatformTokenSpaceGuid.PcdNorFlashRemapping|FALSE|BOOLEAN|0x00000012
 
 [PcdsFixedAtBuild.common]
   # These PCDs should be FeaturePcds. But we used these PCDs as an '#if' in an ASM file.
   # Using a FeaturePcd make a '(BOOLEAN) casting for its value which is not understood by the preprocessor.
+  gArmPlatformTokenSpaceGuid.PcdStandalone|0|UINT32|0x00000001
   gArmPlatformTokenSpaceGuid.PcdMPCoreSupport|0|UINT32|0x00000003
   
   # Stack for CPU Cores in Secure Mode
index 6fbea18b29ae1ec299645b8b7ea23ac348b46211..ba2681c886fc12fee5b8c1a46543c0ff2015c00d 100644 (file)
   gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE\r
 \r
   gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE\r
-  \r
-  gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE\r
 \r
 !if $(EDK2_SKIP_PEICORE) == 1\r
   gArmTokenSpaceGuid.PcdSkipPeiCore|TRUE\r
 #\r
   gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x00000000\r
   \r
+  gArmPlatformTokenSpaceGuid.PcdStandalone|1\r
+  \r
   # Stack for CPU Cores in Secure Mode\r
   gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x4B000000     # Top of SEC Stack for Secure World\r
   gArmPlatformTokenSpaceGuid.PcdCPUCoreSecStackSize|0x2000          # Size of SEC Stack for Secure World\r
index dcd75e000faf1d2e6b76284875c40b9a6d99d65e..9ff68659ce50f099fa58cfddc83dfcdf12710a48 100644 (file)
   gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
 
   gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
-  
-  gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE
 
 !if $(EDK2_SKIP_PEICORE) == 1
   gArmTokenSpaceGuid.PcdSkipPeiCore|TRUE
 #
   gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x00000000
   
+  gArmPlatformTokenSpaceGuid.PcdStandalone|1
   gArmPlatformTokenSpaceGuid.PcdMPCoreSupport|1
   
   # Stacks for MPCores in Secure World
index c3308b4a0bba62ebd2e1f1d9792d9da82995904e..e375709a0f21dae45abf1b1aff0ee0fc0eda2128 100644 (file)
@@ -41,6 +41,6 @@
 
 [FeaturePcd]
   gEmbeddedTokenSpaceGuid.PcdCacheEnable
-  gArmPlatformTokenSpaceGuid.PcdStandalone
 
 [FixedPcd]
+  gArmPlatformTokenSpaceGuid.PcdStandalone
index fe05824bca5a2d5027400803b039d08fae537fa8..dc4d560b140265ab4bc943f4b641b6afb2f396e7 100644 (file)
@@ -39,6 +39,6 @@
 \r
 [FeaturePcd]\r
   gEmbeddedTokenSpaceGuid.PcdCacheEnable\r
-  gArmPlatformTokenSpaceGuid.PcdStandalone\r
 \r
 [FixedPcd]\r
+  gArmPlatformTokenSpaceGuid.PcdStandalone\r
index 9a1be94ebb4921456ebe4d67c984cc93e8084f33..82089985b14e613d5cf6d5856726f7cfdf5e0613 100644 (file)
 
   gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
 
-!if $(EDK2_ARMVE_STANDALONE) == 1
-  gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE
-!endif
-
 !if $(EDK2_SKIP_PEICORE) == 1
   gArmTokenSpaceGuid.PcdSkipPeiCore|TRUE
 !endif
   gArmPlatformTokenSpaceGuid.PcdMPCoreSupport|1
   gArmTokenSpaceGuid.PcdVFPEnabled|1
   
+!if $(EDK2_ARMVE_STANDALONE) == 1
+  gArmPlatformTokenSpaceGuid.PcdStandalone|1
+!endif
+
   # Stacks for MPCores in Secure World
   gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x49E00000            # Top of SEC Stack for Secure World
   gArmPlatformTokenSpaceGuid.PcdCPUCoreSecStackSize|0x2000                   # Stack for each of the 4 CPU cores
index e59a9947475780ff9b73646cc7a9f34a1edaa2da..d78f631829e1ded369aad5d6b38b48d2117795cf 100644 (file)
@@ -45,8 +45,9 @@
 
 [FeaturePcd]
   gEmbeddedTokenSpaceGuid.PcdCacheEnable
-  gArmPlatformTokenSpaceGuid.PcdStandalone
   gArmPlatformTokenSpaceGuid.PcdNorFlashRemapping
 
 [FixedPcd]
+  gArmPlatformTokenSpaceGuid.PcdStandalone
+
   gArmTokenSpaceGuid.PcdL2x0ControllerBase
index 45332256ede92119b8be4c5decd39ef8d9b3f66e..0a1054a28b4817927d5ca31decfa05177cc017dc 100644 (file)
@@ -47,8 +47,9 @@
 \r
 [FeaturePcd]\r
   gEmbeddedTokenSpaceGuid.PcdCacheEnable\r
-  gArmPlatformTokenSpaceGuid.PcdStandalone\r
   gArmPlatformTokenSpaceGuid.PcdNorFlashRemapping\r
 \r
 [FixedPcd]\r
+  gArmPlatformTokenSpaceGuid.PcdStandalone\r
+\r
   gArmTokenSpaceGuid.PcdL2x0ControllerBase\r
index 3a26c35998ef9dc8cf2f2e29175cdb51b0e8c306..d745357164eb5fb4a3f4521e2700259f153933d3 100755 (executable)
@@ -112,7 +112,7 @@ InitializeMemory (
   //\r
   // Initialize the System Memory (DRAM)\r
   //\r
-  if (FeaturePcdGet(PcdStandalone)) {\r
+  if (PcdGet32 (PcdStandalone)) {\r
     // In case of a standalone version, the DRAM is already initialized\r
     ArmPlatformInitializeSystemMemory();\r
   }\r
@@ -120,7 +120,7 @@ InitializeMemory (
   //\r
   // Declare the UEFI memory to PEI\r
   //\r
-  if (FeaturePcdGet(PcdStandalone)) {\r
+  if (PcdGet32 (PcdStandalone)) {\r
     // In case of standalone UEFI, we set the UEFI memory region at the top of the DRAM\r
     UefiMemoryBase = SystemMemoryTop - FixedPcdGet32 (PcdSystemMemoryUefiRegionSize);\r
   } else {\r
index c0971b30f4558ba9ddb8f5608ec0e7a6da7aa2e1..0d578648a7d4500b463a853cb6a72e3728fd9d53 100755 (executable)
 \r
 [FeaturePcd]\r
   gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob\r
-  gArmPlatformTokenSpaceGuid.PcdStandalone\r
 \r
 [FixedPcd]\r
+  gArmPlatformTokenSpaceGuid.PcdStandalone\r
+\r
   gArmTokenSpaceGuid.PcdNormalFdBaseAddress\r
   gArmTokenSpaceGuid.PcdNormalFdSize\r
 \r
index 39de31a42aaa74829ee0258a3970f307be8afbc1..19683cbca82a21bfdd480c99526f2f018146720e 100644 (file)
@@ -71,7 +71,7 @@ PrimaryMain (
   PL390GicEnableDistributor(PcdGet32(PcdGicDistributorBase));\r
 \r
   // If ArmVe has not been built as Standalone then we need to wake up the secondary cores\r
-  if (FeaturePcdGet(PcdStandalone) == FALSE) {\r
+  if (!PcdGet32(PcdStandalone)) {\r
     // Sending SGI to all the Secondary CPU interfaces\r
     PL390GicSendSgiTo (PcdGet32(PcdGicDistributorBase), GIC_ICDSGIR_FILTER_EVERYONEELSE, 0x0E);\r
   }\r
index 917da5dca080de886433bd854e2ad0689ff6f5c5..730361b1b8ad86831149466add2c02e563e6a40e 100644 (file)
 [Ppis]\r
   gEfiTemporaryRamSupportPpiGuid\r
 \r
-[FeaturePcd]\r
-  gArmPlatformTokenSpaceGuid.PcdStandalone\r
-  \r
 [FixedPcd]\r
+  gArmPlatformTokenSpaceGuid.PcdStandalone\r
+\r
   gArmTokenSpaceGuid.PcdNormalFvBaseAddress\r
   gArmTokenSpaceGuid.PcdNormalFvSize\r
 \r
index aeaa0db8ad6e24d42f1ba1b3c4ce4a0369fb1171..52e6d959c7fab8718da923579bad237c9e8df9ff 100644 (file)
 [Ppis]\r
   gEfiTemporaryRamSupportPpiGuid\r
 \r
-[FeaturePcd]\r
-  gArmPlatformTokenSpaceGuid.PcdStandalone\r
-  \r
 [FixedPcd]\r
+  gArmPlatformTokenSpaceGuid.PcdStandalone\r
+\r
   gArmTokenSpaceGuid.PcdNormalFvBaseAddress\r
   gArmTokenSpaceGuid.PcdNormalFvSize\r
 \r
index 98fe51256c6684386fdb60041e8d875bea5c7c07..faa012ab406c4487d4621fb1050af161b1903bf5 100644 (file)
@@ -119,7 +119,7 @@ CEntryPoint (
 
     // If we skip the PEI Core we could want to initialize the DRAM in the SEC phase.
     // If we are in standalone, we need the initialization to copy the UEFI firmware into DRAM
-    if (FeaturePcdGet(PcdSkipPeiCore) || !FeaturePcdGet(PcdStandalone)) {
+    if (FeaturePcdGet(PcdSkipPeiCore) || !PcdGet32(PcdStandalone)) {
       // Initialize system memory (DRAM)
       ArmPlatformInitializeSystemMemory ();
     }
@@ -204,7 +204,7 @@ CEntryPoint (
   }
 
   // If ArmVe has not been built as Standalone then we need to patch the DRAM to add an infinite loop at the start address
-  if (FeaturePcdGet(PcdStandalone) == FALSE) {
+  if (!PcdGet32(PcdStandalone)) {
     if (CoreId == ARM_PRIMARY_CORE) {
       UINTN*   StartAddress = (UINTN*)PcdGet32(PcdNormalFvBaseAddress);
 
index d36fc0c777d697655b415e9d560177cc88eccfee..ad66902f93d50e69377ea2db7dbaf324e5824a88 100644 (file)
   SerialPortLib
   
 [FeaturePcd]
-  gArmPlatformTokenSpaceGuid.PcdStandalone
   gArmTokenSpaceGuid.PcdSkipPeiCore
   
 [FixedPcd]
+  gArmPlatformTokenSpaceGuid.PcdStandalone
   gArmTokenSpaceGuid.PcdVFPEnabled
   gArmPlatformTokenSpaceGuid.PcdMPCoreSupport