From ac0fb62f03289b8ff41cd15debb96d5af3e6a03f Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Sun, 14 Apr 2013 09:35:44 +0000 Subject: ArmPkg: Delete PCD value PcdArmLinuxKernelFixedOffset. PcdArmLinuxKernelFixedOffset is supposed to indicate the offset from the beginning of the system memory at which the kernel will be loaded. However, this PCD value is not used at all. Instead the kernel is loaded just below a certain limit indicated by PCD value PcdArmLinuxKernelMaxOffset. This patch deletes PCD value PcdArmLinuxKernelFixedOffset to avoid any confusion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14273 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/ArmPkg.dec | 2 -- 1 file changed, 2 deletions(-) (limited to 'ArmPkg/ArmPkg.dec') diff --git a/ArmPkg/ArmPkg.dec b/ArmPkg/ArmPkg.dec index 86a3dba7c3..cb711b2e31 100644 --- a/ArmPkg/ArmPkg.dec +++ b/ArmPkg/ArmPkg.dec @@ -163,8 +163,6 @@ # BdsLib # gArmTokenSpaceGuid.PcdArmMachineType|0|UINT32|0x0000001E - # The compressed Linux kernel is expected to load at MemStart + 0x8000 (e.g. 0x8000_8000) - gArmTokenSpaceGuid.PcdArmLinuxKernelFixedOffset|0x00008000|UINT32|0x00000027 # The compressed Linux kernel is expected to be under 128MB from the beginning of the System Memory gArmTokenSpaceGuid.PcdArmLinuxKernelMaxOffset|0x08000000|UINT32|0x0000001F # The Linux ATAGs are expected to be under 0x4000 (16KB) from the beginning of the System Memory -- cgit v1.2.3 From 387653a431766dbaaf76f7743cefc7aa5350b967 Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Sun, 14 Apr 2013 09:36:41 +0000 Subject: ArmPkg/BdsLib: Added support for FDT alignment through PcdArmLinuxFdtAlignment Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14274 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/ArmPkg.dec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'ArmPkg/ArmPkg.dec') diff --git a/ArmPkg/ArmPkg.dec b/ArmPkg/ArmPkg.dec index cb711b2e31..81c4db6a6f 100644 --- a/ArmPkg/ArmPkg.dec +++ b/ArmPkg/ArmPkg.dec @@ -2,7 +2,7 @@ # ARM processor package. # # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.
-# Copyright (c) 2011 - 2012, ARM Limited. All rights reserved. +# Copyright (c) 2011 - 2013, ARM Limited. All rights reserved. # # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License @@ -137,8 +137,6 @@ # 0xC00 = cp10 | cp11 gArmTokenSpaceGuid.PcdArmNsacr|0xC00|UINT32|0x00000039 - gArmTokenSpaceGuid.PcdArmNonSecModeTransition|0x0|UINT32|0x0000003E - # System Memory (DRAM): These PCDs define the region of in-built system memory # Some platforms can get DRAM extensions, these additional regions will be declared # to UEFI by ArmPLatformPlib @@ -167,9 +165,6 @@ gArmTokenSpaceGuid.PcdArmLinuxKernelMaxOffset|0x08000000|UINT32|0x0000001F # The Linux ATAGs are expected to be under 0x4000 (16KB) from the beginning of the System Memory gArmTokenSpaceGuid.PcdArmLinuxAtagMaxOffset|0x4000|UINT32|0x00000020 - # If the fixed FDT address is not available, then it should be loaded the below the kernel - # The recommandation from the Linux kernel is to have the FDT below 16KB - gArmTokenSpaceGuid.PcdArmLinuxFdtMaxOffset|0x4000|UINT32|0x00000023 # # ARM Architectural Timer @@ -178,3 +173,13 @@ # ARM Architectural Timer Interrupt(GIC PPI) number gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|29|UINT32|0x00000035 gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|30|UINT32|0x00000036 + +[PcdsFixedAtBuild.ARM] + # By default we do not do a transition to non-secure mode + gArmTokenSpaceGuid.PcdArmNonSecModeTransition|0x0|UINT32|0x0000003E + # If the fixed FDT address is not available, then it should be loaded below the kernel. + # The recommendation from the Linux kernel is to have the FDT below 16KB. + # (see the kernel doc: Documentation/arm/Booting) + gArmTokenSpaceGuid.PcdArmLinuxFdtMaxOffset|0x4000|UINT32|0x00000023 + # The FDT blob must be loaded at a 64bit aligned address. + gArmTokenSpaceGuid.PcdArmLinuxFdtAlignment|0x8|UINT32|0x00000026 -- cgit v1.2.3