Stack Guard needs to setup stack switch capability to allow exception handler to be called with good stack if stack overflow is detected. This patch update InitializeCpuExceptionHandlersEx() to allow pass extra initialization data used to setup exception stack switch for specified exceptions. Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: "Ware, Ryan R" <ryan.r.ware@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Regression-tested-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Eric Dong <eric.dong@intel.com>
67 lines
1.9 KiB
INI
67 lines
1.9 KiB
INI
## @file
|
|
# CPU Exception Handler library instance for PEI module.
|
|
#
|
|
# Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
# This program and the accompanying materials
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
#
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = PeiCpuExceptionHandlerLib
|
|
MODULE_UNI_FILE = PeiCpuExceptionHandlerLib.uni
|
|
FILE_GUID = 980DDA67-44A6-4897-99E6-275290B71F9E
|
|
MODULE_TYPE = PEIM
|
|
VERSION_STRING = 1.1
|
|
LIBRARY_CLASS = CpuExceptionHandlerLib|PEI_CORE PEIM
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32 X64
|
|
#
|
|
|
|
[Sources.Ia32]
|
|
Ia32/ExceptionHandlerAsm.nasm
|
|
Ia32/ExceptionTssEntryAsm.nasm
|
|
Ia32/ExceptionHandlerAsm.S
|
|
Ia32/ArchExceptionHandler.c
|
|
Ia32/ArchInterruptDefs.h
|
|
|
|
[Sources.X64]
|
|
X64/ExceptionHandlerAsm.nasm
|
|
X64/ExceptionHandlerAsm.S
|
|
X64/ArchExceptionHandler.c
|
|
X64/ArchInterruptDefs.h
|
|
|
|
[Sources.common]
|
|
CpuExceptionCommon.h
|
|
CpuExceptionCommon.c
|
|
PeiCpuException.c
|
|
PeiDxeSmmCpuException.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
SerialPortLib
|
|
PrintLib
|
|
LocalApicLib
|
|
PeCoffGetEntryPointLib
|
|
HobLib
|
|
MemoryAllocationLib
|
|
SynchronizationLib
|
|
|
|
[Pcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard # CONSUMES
|
|
|