mirror_edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib
Lendacky, Thomas ec94e97a6e UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2340

Commit 2db0ccc2d7 ("UefiCpuPkg: Update CpuExceptionHandlerLib pass
XCODE5 tool chain") introduced binary patching into the exception handling
support. CPU exception handling is allowed during SEC and this results in
binary patching of flash, which should not be done.

Separate the changes from commit 2db0ccc2d7 into an XCODE5 toolchain
specific file, Xcode5ExceptionHandlerAsm.nasm, and create a new SEC INF
file for the XCODE5 version of CpuExceptionHandlerLib.

Since binary patching is allowed when running outside of flash, switch
the Dxe, Pei and Smm versions of the CpuExceptionHandlerLib over to use
the Xcode5ExceptionHandlerAsm.nasm file to retain current functionality.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Message-Id: <9075570487616c731033a5738f6a444a15d71b74.1588856809.git.thomas.lendacky@amd.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
2020-05-11 19:25:33 +00:00
..
Ia32 UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
X64 UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific 2020-05-11 19:25:33 +00:00
CpuExceptionCommon.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
CpuExceptionCommon.h UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific 2020-05-11 19:25:33 +00:00
DxeCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeException.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiCpuException.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific 2020-05-11 19:25:33 +00:00
PeiCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiDxeSmmCpuException.c UefiCpuPkg/Smm: Fix various typos 2020-02-10 22:30:07 +00:00
SecPeiCpuException.c UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
SecPeiCpuExceptionHandlerLib.inf UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
SecPeiCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
SmmCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific 2020-05-11 19:25:33 +00:00
SmmCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
SmmException.c UefiCpuPkg/Smm: Fix various typos 2020-02-10 22:30:07 +00:00
Xcode5SecPeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific 2020-05-11 19:25:33 +00:00
Xcode5SecPeiCpuExceptionHandlerLib.uni UefiCpuPkg/CpuExceptionHandler: Make XCODE5 changes toolchain specific 2020-05-11 19:25:33 +00:00