From nobody Tue Feb 10 00:00:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+49498+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49498+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1572229920; cv=none; d=zoho.com; s=zohoarc; b=SPwUo8niBAscsRVLVVz8SSY801C5TqnUbqH9EPCY1RQEMV0Jq+Uf9BFtndT63/YDbJbkjOpvvbIXL2PZV3aAv3AKgIqwxV6IMTwhbE5sVzIOX210AGZREghAiORkjeLKoT3A4nk70m67k/tOE369xI/fAbaZ1hQ0Lm7VBZQsu6Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1572229920; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=Tr2rBQ/30GbxG8tKBkycJclsSYyk7tEMTgSsNekMTks=; b=NmO4T6L8mOho+vILAW/XybyRlSriRic9IaZr1+btpzZdvZe36uyLoiNqfcbOBAd6hhtqdOvpxn1IS90HswKRNLxnkXqPstKPiAzPRtwmUTg+uTo3Q82sw7neNV2JqwA4gM/TFUVxXNQ+fXAOl7otvBEvogctE34WYz1YjJkw9dA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+49498+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1572229920447692.8658183192291; Sun, 27 Oct 2019 19:32:00 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id ahoDYY1788612xV22cgz8HPx; Sun, 27 Oct 2019 19:31:59 -0700 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web12.565.1572229916522457786 for ; Sun, 27 Oct 2019 19:31:56 -0700 X-Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9S2Vj9Z008661; Mon, 28 Oct 2019 02:31:55 GMT X-Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 2vvd90rwxy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 28 Oct 2019 02:31:55 +0000 X-Received: from g4t3433.houston.hpecorp.net (g4t3433.houston.hpecorp.net [16.208.49.245]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 1EDC154; Mon, 28 Oct 2019 02:31:55 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g4t3433.houston.hpecorp.net (Postfix) with ESMTP id BFFC548; Mon, 28 Oct 2019 02:31:53 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Leif Lindholm , Gilbert Chen Subject: [edk2-devel] [edk2-staging/RISC-V-V2 PATCH v3 22/39] RiscVPlatformPkg/RiscVPlatformTempMemoryInit: RISC-V Platform Temporary Memory library Date: Mon, 28 Oct 2019 09:59:00 +0800 Message-Id: <1572227957-13169-23-git-send-email-abner.chang@hpe.com> In-Reply-To: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> References: <1572227957-13169-1-git-send-email-abner.chang@hpe.com> X-HPE-SCL: -1 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,abner.chang@hpe.com X-Gm-Message-State: lCWmas1b64irZHyFHE10Wma5x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1572229919; bh=Oklerb/A1DLjGB7J1I4DaD7p/3bsJYR2q3bH/euW8kA=; h=Cc:Date:From:Reply-To:Subject:To; b=BqwbAUe912R8uMZ+CxutoTbt3BaiLHLfyho8usX/TeSvfj+G/PY3tpzPWjFtB0iCjJn EbUO62YirBVpq2io7sbb6saFOa54+N11tXdkGwcdJZ4MEz2HmTWejE++rYqsaOwawbfl7 LazqwO/Y12UiPbDLJnVh9eEt+HKpyzutP/I= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" NULL instance of RISC-V Platform Temporary Memory library. Signed-off-by: Abner Chang Cc: Leif Lindholm Cc: Gilbert Chen --- .../RiscVPlatformTempMemoryInitLibNull.inf | 34 ++++++++++++++++++= ++++ .../Library/RiscVPlatformTempMemoryInitLib.h | 17 +++++++++++ .../Riscv64/TempMemInit.S | 26 +++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 RiscVPlatformPkg/Library/RiscVPlatformTempMemoryInitLib= Null/RiscVPlatformTempMemoryInitLibNull.inf create mode 100644 RiscVPlatformPkg/Include/Library/RiscVPlatformTempMemor= yInitLib.h create mode 100644 RiscVPlatformPkg/Library/RiscVPlatformTempMemoryInitLib= Null/Riscv64/TempMemInit.S diff --git a/RiscVPlatformPkg/Library/RiscVPlatformTempMemoryInitLibNull/Ri= scVPlatformTempMemoryInitLibNull.inf b/RiscVPlatformPkg/Library/RiscVPlatfo= rmTempMemoryInitLibNull/RiscVPlatformTempMemoryInitLibNull.inf new file mode 100644 index 0000000..12fa497 --- /dev/null +++ b/RiscVPlatformPkg/Library/RiscVPlatformTempMemoryInitLibNull/RiscVPlat= formTempMemoryInitLibNull.inf @@ -0,0 +1,34 @@ +## @file +# RISC-V platform temporary memory library. +# +# Copyright (c) 2016, Hewlett Packard Enterprise Development LP. All right= s reserved.
+# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +## + +[Defines] + INF_VERSION =3D 0x0001001b + BASE_NAME =3D RiscVPlatformTempMemoryInitLibNull + FILE_GUID =3D 67294857-C0F8-4ACB-8237-D91FE506B710 + MODULE_TYPE =3D SEC + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D RiscVPlatformTempMemoryInitLib + +# +# The following information is for reference only and not required by the = build tools. +# +# VALID_ARCHITECTURES =3D RISCV64 +# + +[Sources] + +[Sources.RISCV64] + Riscv64/TempMemInit.S + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + RiscVPkg/RiscVPkg.dec + + diff --git a/RiscVPlatformPkg/Include/Library/RiscVPlatformTempMemoryInitLi= b.h b/RiscVPlatformPkg/Include/Library/RiscVPlatformTempMemoryInitLib.h new file mode 100644 index 0000000..4f9f795 --- /dev/null +++ b/RiscVPlatformPkg/Include/Library/RiscVPlatformTempMemoryInitLib.h @@ -0,0 +1,17 @@ +/** @file + RISC-V package definitions. + + Copyright (c) 2016 - 2019, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent +**/ + +#ifndef RISCV_PLATFORM_TEMP_MEM_LIB_H_ +#define RISCV_PLATFORM_TEMP_MEM_LIB_H_ + +#include "RiscVImpl.h" + +VOID EFIAPI RiscVPlatformTemporaryMemInit (VOID); +UINT32 EFIAPI RiscVPlatformTemporaryMemSize (VOID); +UINT32 EFIAPI RiscVPlatformTemporaryMemBase (VOID); +#endif diff --git a/RiscVPlatformPkg/Library/RiscVPlatformTempMemoryInitLibNull/Ri= scv64/TempMemInit.S b/RiscVPlatformPkg/Library/RiscVPlatformTempMemoryInitL= ibNull/Riscv64/TempMemInit.S new file mode 100644 index 0000000..61a9923 --- /dev/null +++ b/RiscVPlatformPkg/Library/RiscVPlatformTempMemoryInitLibNull/Riscv64/T= empMemInit.S @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------= ------ +// +// RISC-V RiscVPlatformTemporaryMemInit. +// +// Copyright (c) 2016 - 2019, Hewlett Packard Enterprise Development LP. A= ll rights reserved.
+// +// SPDX-License-Identifier: BSD-2-Clause-Patent +// +//------------------------------------------------------------------------= ------ +#include + +.data + +.text +.align 3 + +.global ASM_PFX(RiscVPlatformTemporaryMemInit) + +// +// @retval a0 Temporary memory base. +// a1 Temporary memory size. +// +ASM_PFX(RiscVPlatformTemporaryMemInit): + li a0, FixedPcdGet32 (PcdRiscVSecPeiTempRamBase) + li a1, FixedPcdGet32 (PcdRiscVSecPeiTempRamSize) + ret --=20 2.7.4 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#49498): https://edk2.groups.io/g/devel/message/49498 Mute This Topic: https://groups.io/mt/38757528/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-