summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/CommonDataClass/ModuleClass.py
diff options
context:
space:
mode:
authorJian J Wang <jian.j.wang@intel.com>2017-12-07 15:17:05 +0300
committerStar Zeng <star.zeng@intel.com>2017-12-08 09:38:50 +0300
commit01953ce68e7276c6c847b31da3a201dd2c8595ea (patch)
tree7a9b0a75660c4f9503f9471c927865414c14f29f /BaseTools/Source/Python/CommonDataClass/ModuleClass.py
parente9415e4846dd8e93c5cabff66e3d599a7844a740 (diff)
downloadedk2-01953ce68e7276c6c847b31da3a201dd2c8595ea.tar.xz
UefiCpuPkg/CpuDxe: Initialize stack switch for MP
In current MP implementation, BSP and AP shares the same exception configuration. Stack switch required by Stack Guard feature needs that BSP and AP have their own configuration. This patch adds code to ask BSP and AP to do exception handler initialization separately. Since AP is not supposed to do memory allocation, all memory needed to setup stack switch will be reserved in BSP and pass to AP via new API EFI_STATUS EFIAPI InitializeCpuExceptionHandlersEx ( IN EFI_VECTOR_HANDOFF_INFO *VectorInfo OPTIONAL, IN CPU_EXCEPTION_INIT_DATA *InitData OPTIONAL ); Following two new PCDs are introduced to configure how to setup new stack for specified exception handlers. gUefiCpuPkgTokenSpaceGuid.PcdCpuStackSwitchExceptionList gUefiCpuPkgTokenSpaceGuid.PcdCpuKnownGoodStackSize Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Suggested-by: Ayellet Wolman <ayellet.wolman@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Jeff Fan <vanjeff_919@hotmail.com> Reviewed-by: Jiewen.yao@intel.com
Diffstat (limited to 'BaseTools/Source/Python/CommonDataClass/ModuleClass.py')
0 files changed, 0 insertions, 0 deletions