UefiCpuPkg: Add CPU exception library for LoongArch
Added LoongArch exception handler into CpuExceptionHandlerLib. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4734 Cc: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Chao Li <lichao@loongson.cn> Co-authored-by: Baoqi Zhang <zhangbaoqi@loongson.cn> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# CPU Exception Handler library instance for SEC/PEI modules.
|
||||
#
|
||||
# Copyright (c) 2012 - 2022, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2024, Loongson Technology Corporation Limited. All rights reserved.<BR>
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
##
|
||||
@@ -19,6 +20,7 @@
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
# VALID_ARCHITECTURES = IA32 X64 LOONGARCH64
|
||||
#
|
||||
|
||||
[Sources.Ia32]
|
||||
@@ -32,24 +34,37 @@
|
||||
X64/ArchInterruptDefs.h
|
||||
X64/SecPeiExceptionHandlerAsm.nasm
|
||||
|
||||
[Sources.common]
|
||||
[Sources.Ia32, Sources.X64]
|
||||
CpuExceptionCommon.h
|
||||
CpuExceptionCommon.c
|
||||
SecPeiCpuException.c
|
||||
|
||||
[Sources.LoongArch64]
|
||||
LoongArch/ExceptionCommon.h
|
||||
LoongArch/ExceptionCommon.c
|
||||
LoongArch/SecPeiExceptionLib.c
|
||||
LoongArch/LoongArch64/ArchExceptionHandler.c
|
||||
LoongArch/LoongArch64/ExceptionHandlerAsm.S | GCC
|
||||
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
UefiCpuPkg/UefiCpuPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
[LibraryClasses.common]
|
||||
BaseLib
|
||||
CcExitLib
|
||||
LocalApicLib
|
||||
PeCoffGetEntryPointLib
|
||||
PrintLib
|
||||
SerialPortLib
|
||||
|
||||
[LibraryClasses.Ia32, LibraryClasses.X64]
|
||||
CcExitLib
|
||||
LocalApicLib
|
||||
|
||||
[LibraryClasses.LoongArch64]
|
||||
CpuLib
|
||||
|
||||
[Pcd]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdCpuStackGuard
|
||||
gUefiCpuPkgTokenSpaceGuid.PcdCpuStackSwitchExceptionList
|
||||
|
Reference in New Issue
Block a user