]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c
DxeMain: Fix the bug that StackGuard is not enabled
authorRay Ni <ray.ni@intel.com>
Fri, 10 Jun 2022 08:43:32 +0000 (16:43 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 14 Jun 2022 02:59:22 +0000 (02:59 +0000)
commit6676162f64ad39949ed44f17ce40e5c49ab33e31
treea1dc1091f9e176f49ac800b0e5c0660901b214a4
parente2ae0bed29ca0900bd359ec8c4c2998c591e6095
DxeMain: Fix the bug that StackGuard is not enabled

Commit e7abb94d1 removed InitializeCpuExceptionHandlersEx
and updated DxeMain to call InitializeCpuExceptionHandlers
for exception setup. But the old behavior that calls *Ex() sets
up the stack guard as well. To match the old behavior,
the patch calls InitializeSeparateExceptionStacks.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c