summaryrefslogtreecommitdiff
path: root/ArmPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-18 21:15:50 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-18 21:15:50 +0000
commit8c454d9800a128b75b9156918c378dcb2baa22c0 (patch)
tree2741046e9109d65c9aa43a589fe79911fb86e858 /ArmPkg
parentbd54c237f32c60c011feed88abb7f4913a69164f (diff)
downloadedk2-platforms-8c454d9800a128b75b9156918c378dcb2baa22c0.tar.xz
BeagleBoardPkg: Use gArmTokenSpaceGuid.PcdSystemMemoryBase/Size to define System Memory
These PCDs are used by ArmPlatformPkg/Bds to know where to load the Linux kernel and its parameters. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12171 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Library/BdsLib/BdsLinuxLoader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ArmPkg/Library/BdsLib/BdsLinuxLoader.c b/ArmPkg/Library/BdsLib/BdsLinuxLoader.c
index 3c1f1346b7..2b42b28ff4 100644
--- a/ArmPkg/Library/BdsLib/BdsLinuxLoader.c
+++ b/ArmPkg/Library/BdsLib/BdsLinuxLoader.c
@@ -223,6 +223,8 @@ BdsBootLinux (
EFI_PHYSICAL_ADDRESS LinuxImage;
EFI_PHYSICAL_ADDRESS InitrdImage;
+ // Ensure the System Memory PCDs have been initialized (PcdSystemMemoryBase and PcdSystemMemorySize)
+ ASSERT (PcdGet32(PcdSystemMemorySize) != 0);
PERF_START (NULL, "BDS", NULL, 0);