From: "Abner Chang" <abner.chang@hpe.com>
To: devel@edk2.groups.io
Cc: abner.chang@hpe.com, Daniel Schaefer <daniel.schaefer@hpe.com>,
Eric Dong <eric.dong@intel.com>, Ray Ni <ray.ni@intel.com>,
Rahul Kumar <rahul1.kumar@intel.com>,
Sunil V L <sunilvl@ventanamicro.com>,
Andrew Fish <afish@apple.com>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Michael D Kinney <michael.d.kinney@intel.com>,
Chao Li <lichao@loongson.cn>,
Liming Gao <gaoliming@byosoft.com.cn>,
Zhiguang Liu <zhiguang.liu@intel.com>,
Bob Feng <bob.c.feng@intel.com>,
Yuwei Chen <yuwei.chen@intel.com>
Subject: [PATCH V2 0/8] Rework UefiCpuPkg
Date: Fri, 25 Mar 2022 14:12:41 +0800 [thread overview]
Message-ID: <20220325061249.30626-1-abner.chang@hpe.com> (raw)
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.chang@hpe.com>
Co-authored-by: Daniel Schaefer <daniel.schaefer@hpe.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Sunil V L <sunilvl@ventanamicro.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Chao Li <lichao@loongson.cn>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@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
next reply other threads:[~2022-03-25 7:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-25 6:12 Abner Chang [this message]
2022-03-25 6:12 ` [PATCH V2 1/8] [RFC] UefiCpuPkg: Classify IA32/X64 modules in DSC file Abner Chang
2022-03-25 6:12 ` [PATCH V2 2/8] [RFC] UefiCpuPkg/Include: Add header files of RISC-V processor architecture Abner Chang
2022-03-25 6:12 ` [PATCH V2 3/8] [RFC] UefiCpuPkg/BaseUefiCpuLib: Add RISC-V RISCV64 instace Abner Chang
2022-03-25 6:12 ` [PATCH V2 4/8] [RFC] UefiCpuPkg/RiscVOpensbLib: Add opensbi submodule Abner Chang
2022-03-25 6:12 ` [PATCH V2 5/8] [RFC] MdePkg/Include: Add RISC-V OpenSBI header files Abner Chang
2022-03-25 6:12 ` [PATCH V2 6/8] [RFC] BaseTools/Conf: Relocate RiscVOpensbiTypes.h Abner Chang
2022-03-25 6:12 ` [PATCH V2 7/8] [RFC] UefiCpuPkg/Library: Add RiscVOpensbiLib Abner Chang
2022-03-25 6:12 ` [PATCH V2 8/8] [RFC] UefiCpuPkg: Update YAML file for RISC-V arch Abner Chang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220325061249.30626-1-abner.chang@hpe.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox