]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/DxeMpLib: Allocate below 4GB mem for AsmRelocateApLoopFunc
authorJeff Fan <jeff.fan@intel.com>
Fri, 11 Nov 2016 08:56:44 +0000 (16:56 +0800)
committerLaszlo Ersek <lersek@redhat.com>
Fri, 11 Nov 2016 11:26:00 +0000 (12:26 +0100)
commitffd6b0b1b65e620816fb16fe551f92309f4b7269
treede9106ebe4b902a0562a73c7b1cfcc09e885f30f
parentb1067637cf53fd55f34b6a6147988e06f8cb7e80
UefiCpuPkg/DxeMpLib: Allocate below 4GB mem for AsmRelocateApLoopFunc

Current implementation just allocates reserve memory for AsmRelocateApLoopFunc.
It not be safe because APs will be placed into 32bit protected mode on long mode
DXE. This reserve memory must be located below 4GB memory.

This fix is to allocate < 4GB memory for AsmRelocateApLoopFunc.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
[lersek@redhat.com: strip whitespace at EOL]
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c