]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/DxeMain: Fix wrong sanity check in CoreTerminateMemoryMap()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 21 Jan 2015 03:11:19 +0000 (03:11 +0000)
committererictian <erictian@Edk2>
Wed, 21 Jan 2015 03:11:19 +0000 (03:11 +0000)
commit7d17a6a1197f6b1aaf2bbce6c43c23c529dbfc0b
tree56e71b44819ae89f4d4c658530f78fbfd22cb73a
parentd3d925578c89281685f860726fda08cc5daf06bb
MdeModulePkg/DxeMain: Fix wrong sanity check in CoreTerminateMemoryMap()

The function CoreTerminateMemoryMap() performs some final sanity checks on the runtime regions in the memory map before allowing ExitBootServices() to complete.
Unfortunately, it does so by testing the EFI_MEMORY_RUNTIME bit in the Attribute field, which is never set anywhere in the code.

Contributed-under: TianoCore Contribution Agreement 1.0

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16630 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Core/Dxe/Mem/Page.c