audk/UefiCpuPkg/Library/CpuExceptionHandlerLib
Dongyan Qian 5db0091418 UefiCpuPkg/ExceptionHandler: Fix a context error in LoongArch64
On the LoongArch platform:
 the a0 register can be used as both a function parameter and a return value.

Due to parameter EFI_SYSTEM_CONTEXT being overwritten by an invalid context address,
when calling GetExceptionType, incorrect parameter address causes memory access exception.

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4796

Cc: Chao Li <lichao@loongson.cn>
Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn>
2024-06-26 00:52:39 +00:00
..
Ia32 UefiCpuPkg/CpuExceptionHandlerLib: Code optimization to allow bigger stack 2022-10-08 05:45:22 +00:00
LoongArch UefiCpuPkg/ExceptionHandler: Fix a context error in LoongArch64 2024-06-26 00:52:39 +00:00
UnitTest UefiCpuPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
X64 UefiCpuPkg/CpuExceptionHandlerLib: Make runtime fixups XCODE-only 2023-04-06 06:52:55 +00:00
CpuExceptionCommon.c UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
CpuExceptionCommon.h UefiCpuPkg: Simplify the implementation when separate exception stacks 2022-08-31 04:23:55 +00:00
DxeCpuExceptionHandlerLib.inf UefiCpuPkg: Add CPU exception library for LoongArch 2024-04-16 06:00:32 +00:00
DxeCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeException.c UefiCpuPkg: Simplify the implementation when separate exception stacks 2022-08-31 04:23:55 +00:00
PeiCpuException.c UefiCpuPkg:Add RegisterExceptionHandler in PeiCpuExceptionHandlerLib 2022-10-17 08:03:06 +00:00
PeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Reorder the INF files alphabetically 2024-04-16 06:00:32 +00:00
PeiCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiDxeSmmCpuException.c OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib 2022-11-14 04:55:34 +00:00
SecPeiCpuException.c OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib 2022-11-14 04:55:34 +00:00
SecPeiCpuExceptionHandlerLib.inf UefiCpuPkg: Add CPU exception library for LoongArch 2024-04-16 06:00:32 +00:00
SecPeiCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
SmmCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Reorder the INF files alphabetically 2024-04-16 06:00:32 +00:00
SmmCpuExceptionHandlerLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
SmmException.c UefiCpuPkg: Simplify InitializeSeparateExceptionStacks 2022-08-09 04:12:28 +00:00