summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf
diff options
context:
space:
mode:
authorSunil V L <sunilvl@ventanamicro.com>2022-09-07 12:23:32 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-02-16 05:53:28 +0000
commit76e956547eafc88a46c7620d0fb128d4e10b1c64 (patch)
treeb948f697de0db5ada2a1b06741554c71d56c4bf2 /MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf
parent550f196e823a9f857e0313e632d89b6653946f88 (diff)
downloadedk2-76e956547eafc88a46c7620d0fb128d4e10b1c64.zip
edk2-76e956547eafc88a46c7620d0fb128d4e10b1c64.tar.gz
edk2-76e956547eafc88a46c7620d0fb128d4e10b1c64.tar.bz2
MdePkg: Add BaseRiscVSbiLib Library for RISC-V
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4076 This library is required to make SBI ecalls from the S-mode EDK2. This is mostly copied from edk2-platforms/Silicon/RISC-V/ProcessorPkg/Library/RiscVEdk2SbiLib Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Acked-by: Abner Chang <abner.chang@amd.com> Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf')
-rw-r--r--MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf26
1 files changed, 26 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf b/MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf
new file mode 100644
index 0000000..d6fd3f6
--- /dev/null
+++ b/MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.inf
@@ -0,0 +1,26 @@
+## @file
+# RISC-V Library to call SBI ecalls
+#
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+#
+##
+
+[Defines]
+ INF_VERSION = 0x0001001b
+ BASE_NAME = BaseRiscVSbiLib
+ FILE_GUID = D742CF3D-E600-4009-8FB5-318073008508
+ MODULE_TYPE = BASE
+ VERSION_STRING = 1.0
+ LIBRARY_CLASS = RiscVSbiLib
+
+[Sources]
+ BaseRiscVSbiLib.c
+ RiscVSbiEcall.S
+
+[Packages]
+ MdePkg/MdePkg.dec
+
+[LibraryClasses]
+ BaseLib