audk/MdeModulePkg/Universal/EbcDxe/Ia32
Ard Biesheuvel 16dc5b68fc MdeModulePkg/EbcDxe: use EfiBootServicesCode memory for thunks
The EBC driver emits thunks for native to EBC calls, which are short
instructions sequences that bridge the gap between the native execution
environment and the EBC virtual machine.

Since these thunks are allocated using MemoryAllocationLib::AllocatePool(),
they are emitted into EfiBootServicesData regions, which does not reflect
the nature of these thunks accurately, and interferes with strict memory
protection policies that map data regions non-executable.

So instead, create a new helper EbcAllocatePoolForThunk() that invokes the
AllocatePool() boot service directly to allocate EfiBootServicesCode pool
memory explicitly, and wire up this helper for the various architecture
specific thunk generation routines.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2017-02-28 14:59:50 +00:00
..
EbcLowLevel.S Remove assumption on EAX and R10 usage for IA32 compiler and X64 compiler. 2011-11-22 08:07:30 +00:00
EbcLowLevel.asm MdeModulePkg EbcDxe: Use NASM compatible syntax 2016-06-28 09:51:54 +08:00
EbcLowLevel.nasm MdeModulePkg EbcDxe: Convert Ia32/EbcLowLevel.asm to NASM 2016-06-28 09:51:58 +08:00
EbcSupport.c MdeModulePkg/EbcDxe: use EfiBootServicesCode memory for thunks 2017-02-28 14:59:50 +00:00