audk/MdeModulePkg
Ard Biesheuvel 7970100ccb MdeModulePkg: use correct granularity when allocating pool pages
After fixing the sanity check on the alignment of the runtime regions
in SVN revision #16630 ("MdeModulePkg/DxeMain: Fix wrong sanity check
in CoreTerminateMemoryMap()"), it is no longer possible to define a
runtime allocation alignment that is different from the boot time
allocation alignment.

For instance, #defining the following in MdeModulePkg/Core/Dxe/Mem/Imem.h
will hit the ASSERT () in MdeModulePkg/Core/Dxe/Mem/Page.c:1798

  #define EFI_ACPI_RUNTIME_PAGE_ALLOCATION_ALIGNMENT  (SIZE_64KB)
  #define DEFAULT_PAGE_ALLOCATION                     (EFI_PAGE_SIZE)

(which is needed for 64-bit ARM to adhere to the Server Base Boot
Requirements [SBBR], which stipulates that all runtime memory regions
should be naturally aligned multiples of 64 KB)

This patch fixes this use case by ensuring that the backing for the memory
pools is allocated in appropriate chunks for the memory type.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17011 6f19259b-4bc3-4df7-8a09-765794883524
2015-03-06 02:54:05 +00:00
..
Application MdeModulePkg DxeCore/PiSmmCore/MemoryProfileInfo: Fix EBC and VS2013 build failure. 2014-11-17 02:30:44 +00:00
Bus MdeModulePkg: list ARM and AARCH64 as valid architectures for some modules 2015-02-23 16:05:50 +00:00
Core MdeModulePkg: use correct granularity when allocating pool pages 2015-03-06 02:54:05 +00:00
Include MdeModulePkg Variable: Implement variable quota management. 2015-01-27 08:42:47 +00:00
Library MdeModulePkg: Update library class name of PlatformHookLibSerialPortPpi.inf 2015-02-10 07:33:19 +00:00
Logo MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
Universal MdeModulePkg/FvSimpleFileSystemDxe: Fixed ARM compiler error 2015-02-25 02:24:04 +00:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt
MdeModulePkg.dec MdeModulePkg: Update SMBIOS revision to 3.0. 2015-02-15 05:01:59 +00:00
MdeModulePkg.dsc MdeModulePkg: Update DSC file to fix build failure in EBC. 2015-02-05 06:10:07 +00:00
MdeModulePkg.uni MdeModulePkg Variable: Introduce PcdReclaimVariableSpaceAtEndOfDxe 2015-02-02 09:30:34 +00:00
MdeModulePkgExtra.uni MdeModulePkg: INF/DEC file updates to EDK II packages 2014-08-28 06:55:48 +00:00