]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/DxeCore: set ImageContext Handle and ImageRead() fields
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 29 Apr 2016 07:39:18 +0000 (09:39 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 29 Apr 2016 14:57:50 +0000 (16:57 +0200)
commitdfbc039fac0dc7aabd11c9ba6e825d8171c59fa4
tree9390722990f71e9f5428271c28456678b53972c8
parentb59e2427c2d92cfee0238d9bde7372691c2af17c
MdeModulePkg/DxeCore: set ImageContext Handle and ImageRead() fields

Set the ImageContext.Handle and ImageContext.ImageRead() fields so that
PeCoffLoaderRelocateImageExtraAction() can invoke PeCoffLoaderGetImageInfo
or PeCoffLoaderGetPeHeader if desired to obtain additional metadata.

We will use this to create a PeCoffLoaderRelocateImageExtraAction()
implementation that applies boot time strict mapping permissions to
PE/COFF modules.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Star Zeng <star.zeng@intel.com>
MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c