History log of /device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
40a3f38f67cee7046feb5a5666883cc75a6962ff 06-Jul-2015 Olivier Martin <Olivier.Martin@arm.com> ArmPlatformPkg/MemoryInitPei: Check if the main System Memory resource has been declared

The PlatformLib could have declared the resource hob for
the main system memory region.
This change would prevent to get this system memory resource
to be declared twice.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Ronald Cron <Ronald.Cron@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17834 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
bb5420bb2b5fa146de1ddf2da5932b214e5743a9 11-Nov-2014 Leif Lindholm <leif.lindholm@linaro.org> ArmPlatformPkg: Increase more ARM address Pcd entries to 64-bit.

Some AArch64 platforms have RAM and flash devices >4GB.
Update some additional Pcd entries to 64-bit, and change
the corresponding PcdGet32 calls to PcdGet64.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16325 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
c357fd6a1f79e2d7b0a1bd01994b8d33925bfff5 10-Jan-2014 Olivier Martin <olivier.martin@arm.com> ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64

The System Memory region might be out of the 32-bit memory space.

This change has been validated on the FVP AArch64 model using 4GB
of DRAM at 0x8_0000_0000:

- # System Memory (2GB)
- gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
- gArmTokenSpaceGuid.PcdSystemMemorySize|0x80000000
+ # System Memory (4GB)
+ gArmTokenSpaceGuid.PcdSystemMemoryBase|0x800000000
+ gArmTokenSpaceGuid.PcdSystemMemorySize|0x100000000

EFI Shell and Linux kernel boot successfully.

Note: This change has not been validated on AArch32. I expect some
early assembly code to not work.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>




git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15093 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
2a414cd3c35f09978124936f3377b073f2ce37fc 16-Sep-2013 Garrett Kirkendall <garrett.kirkendall@amd.com> 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
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
6f050ad6bf16f3f2ae2f0b62e93404230de575cc 27-Jun-2013 Olivier Martin <olivier.martin@arm.com> ArmPkg: Made ArmConfigureMmu() returns a status code

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14445 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
b34e4db38206407f13442b5f61cead6ce0d3c99c 27-Sep-2012 oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> ARM Packages: Minor typo, mispellings and coding style changes

Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13752 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
bd6b97994ab6219c74033a7e68a503dbb8d56f9f 27-Sep-2011 oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> ArmPkg/ArmLib: Clean ArmV7Lib

- Move the non specific ArmV7 functions to ArmLib.
- Clean the ARM Platform common components to not depend on ArmV7 if not required



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12453 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
f92b93c9a31a763b2848fda804f1198eea571de7 23-Sep-2011 oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> ARM Packages: Rename PcdNormal* into Pcd* PCDs

The denomination 'Normal' was used to make reference to the 'Normal'
or 'Non Secure' or 'Non Trusted' world.
To avoid confusion, this prefix has been removed from PCDs to define
the normal world.

The PCDs explicitely related to the Secure/Trusted World continue to
have the 'Sec' prefix.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12416 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
d269095b712ba45fd4aca55331b5e6f3045ce1ad 06-Jul-2011 oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> ArmPlatformPkg: Change the memory model for the ARM Platform components

In the former memory model, the UEFI firmware was expected to be located
at the top of the system memory. Stacks & Pi memory regions were set below
the firmware.
On some platform, the UEFI firmware could be shadowed by the ROM firmware
(case of the BeagleBoard) and in some cases the firmware is copied at the
beginning of the system memory.

With this new memory model, stack and Pi/DXE memory regions are set at the
top of the system memory wherever the UEFI firmware is located in the memory
map.
Because DXE core does not support shadowed firmwares, the system memory covered
by the UEFI firmware is marked as 'Non Present' to avoid to be overlapped by
DXE allocations.



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11992 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c
3a6eaccf2f20b6fac1cdc6f82f041e78eb962e94 01-Jul-2011 oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> ArmPlatformPkg/MemoryInitPei: Generate a library from the PEI Module

In the aim to reuse the memory init features in a PrePi module (use to
skip the PEI Core), this module has been divided into two files:
- MemoryInitPeiLib: declare the memory HOBs
- MemoryIniPeim: PEIM warpper for the library



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11950 6f19259b-4bc3-4df7-8a09-765794883524
/device/linaro/bootloader/edk2/ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.c