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>
Status = InitializeCpuExceptionHandlers (VectorInfoList);\r
ASSERT_EFI_ERROR (Status);\r
\r
+ //\r
+ // Setup Stack Guard\r
+ //\r
+ if (PcdGetBool (PcdCpuStackGuard)) {\r
+ Status = InitializeSeparateExceptionStacks (NULL);\r
+ ASSERT_EFI_ERROR (Status);\r
+ }\r
+\r
//\r
// Initialize Debug Agent to support source level debug in DXE phase\r
//\r