diff options
author | Garrett Kirkendall <garrett.kirkendall@amd.com> | 2013-09-16 09:29:52 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-09-16 09:29:52 +0000 |
commit | 2a414cd3c35f09978124936f3377b073f2ce37fc (patch) | |
tree | 7c7858829dbe8d67f55b093d6fb5a51a32b81e4f /Omap35xxPkg | |
parent | 6e3e4d70d47a8beb7d7e1ac10be69cc2924b9e8d (diff) | |
download | edk2-2a414cd3c35f09978124936f3377b073f2ce37fc.zip edk2-2a414cd3c35f09978124936f3377b073f2ce37fc.tar.gz edk2-2a414cd3c35f09978124936f3377b073f2ce37fc.tar.bz2 |
ArmPlatformPkg/MemoryInitPei: AARCH64 fix memory address calculations
At least for AARCH64 currently, SystemMemoryTop and FdTop can overflow
while adding the 32-bit PCDs together. The resulting value loses the
upper 32-bits. Cast each of the values to EFI_PHYSICAL_ADDRESS size
before doing the addition to prevent erroneous overflow. There is currently
no 32-bit platform in EDKII open source that will overflow and this change
would not fix that problem anyway.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Garrett Kirkendall <garrett.kirkendall@amd.com>
Reviewed-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14675 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Omap35xxPkg')
0 files changed, 0 insertions, 0 deletions