MpInitLib: Allocate code buffer for PEI phase
Today's implementation assumes PEI phase runs at 32bit so the execution-disable feature is not applicable. It's not always TRUE. The patch allocates 32bit&64bit code buffer for PEI phase as well. Signed-off-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
@@ -1056,7 +1056,7 @@ AllocateResetVector (
|
||||
(CpuMpData->WakeupBuffer +
|
||||
CpuMpData->AddressMap.RendezvousFunnelSize +
|
||||
CpuMpData->AddressMap.SwitchToRealSize);
|
||||
CpuMpData->WakeupBufferHigh = GetModeTransitionBuffer (
|
||||
CpuMpData->WakeupBufferHigh = AllocateCodeBuffer (
|
||||
CpuMpData->AddressMap.RendezvousFunnelSize +
|
||||
CpuMpData->AddressMap.SwitchToRealSize -
|
||||
CpuMpData->AddressMap.ModeTransitionOffset
|
||||
|
Reference in New Issue
Block a user