https://bugzilla.tianocore.org/show_bug.cgi?id=3860
This is the project having rework on UefiCpuPkg in order to support a variety of processor architectures. Some modules under UefiCpuPkg are required to be abstract for the different archs. In V2: - I moved two RISC-V OpenSBI header files to under MdePkg/Include/IndustryStandard (5/8). However I am not sure if that is proper having those files there. - Fixed some CI errors. In V1: The first step is to classify UefiCpuPkg modules to IA32 and X64 sections in DSC file (Patch 1/6). Move the module to Common section later if more than one archs can leverage the same module (such as Patch 3/6 for BaseUefiCpuLib). Signed-off-by: Abner Chang <abner.ch...@hpe.com> Co-authored-by: Daniel Schaefer <daniel.schae...@hpe.com> Cc: Eric Dong <eric.d...@intel.com> Cc: Ray Ni <ray...@intel.com> Cc: Rahul Kumar <rahul1.ku...@intel.com> Cc: Sunil V L <suni...@ventanamicro.com> Cc: Andrew Fish <af...@apple.com> Cc: Leif Lindholm <quic_llind...@quicinc.com> Cc: Michael D Kinney <michael.d.kin...@intel.com> Cc: Chao Li <lic...@loongson.cn> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang....@intel.com> Cc: Bob Feng <bob.c.f...@intel.com> Cc: Liming Gao <gaolim...@byosoft.com.cn> Cc: Yuwei Chen <yuwei.c...@intel.com> Abner Chang (8): [RFC] UefiCpuPkg: Classify IA32/X64 modules in DSC file [RFC] UefiCpuPkg/Include: Add header files of RISC-V processor architecture [RFC] UefiCpuPkg/BaseUefiCpuLib: Add RISC-V RISCV64 instace [RFC] UefiCpuPkg/RiscVOpensbLib: Add opensbi submodule [RFC] MdePkg/Include: Add RISC-V OpenSBI header files [RFC] BaseTools/Conf: Relocate RiscVOpensbiTypes.h [RFC] UefiCpuPkg/Library: Add RiscVOpensbiLib [RFC] UefiCpuPkg: Update YAML file for RISC-V arch UefiCpuPkg/UefiCpuPkg.dec | 26 ++- UefiCpuPkg/UefiCpuPkg.dsc | 45 +++-- .../Library/BaseUefiCpuLib/BaseUefiCpuLib.inf | 8 +- .../RiscVOpensbiLib/RiscVOpensbiLib.inf | 89 ++++++++++ .../Include/IndustryStandard/RiscVOpensbi.h | 62 +++++++ .../IndustryStandard/RiscVOpensbiTypes.h | 82 +++++++++ .../Include/IndustryStandard/RISC-V/RiscV.h | 162 ++++++++++++++++++ .../Include/Library/RISC-V/RiscVCpuLib.h | 118 +++++++++++++ UefiCpuPkg/Include/RISC-V/RiscVImpl.h | 87 ++++++++++ .gitmodules | 45 ++--- BaseTools/Conf/tools_def.template | 2 +- MdePkg/MdePkg.ci.yaml | 2 + .../Library/BaseUefiCpuLib/BaseUefiCpuLib.uni | 5 +- .../Library/BaseUefiCpuLib/RISCV64/Cpu.S | 143 ++++++++++++++++ .../Library/RISC-V/RiscVOpensbiLib/opensbi | 1 + UefiCpuPkg/UefiCpuPkg.ci.yaml | 60 ++++++- 16 files changed, 888 insertions(+), 49 deletions(-) create mode 100644 UefiCpuPkg/Library/RISC-V/RiscVOpensbiLib/RiscVOpensbiLib.inf create mode 100644 MdePkg/Include/IndustryStandard/RiscVOpensbi.h create mode 100644 MdePkg/Include/IndustryStandard/RiscVOpensbiTypes.h create mode 100644 UefiCpuPkg/Include/IndustryStandard/RISC-V/RiscV.h create mode 100644 UefiCpuPkg/Include/Library/RISC-V/RiscVCpuLib.h create mode 100644 UefiCpuPkg/Include/RISC-V/RiscVImpl.h create mode 100644 UefiCpuPkg/Library/BaseUefiCpuLib/RISCV64/Cpu.S create mode 160000 UefiCpuPkg/Library/RISC-V/RiscVOpensbiLib/opensbi -- 2.31.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#88015): https://edk2.groups.io/g/devel/message/88015 Mute This Topic: https://groups.io/mt/90017681/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-