From nobody Tue May 21 06:09:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+57202+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57202+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1586505832; cv=none; d=zohomail.com; s=zohoarc; b=c4+9MhCw++ZcB3oaeQV4GgL/4jHAmkeOhWJvU4QJN8PNP11a73MTmG/4EF3569lWs5BhFLDcSDJSZQcON5hmTTg091VzFiuVQMpnJFi9V+5OrozgAwjyYiG8usQw1OmE5qLQyJbRtaVjh041peK1cXOEqbyp16yEz1BkZYVb8VY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586505832; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=RWLvYPY3tFWQCla+LRjgKc3CXxdizZvp1tp2e9dh7JE=; b=PEHAxdzFBFGgQU5DnFMU/TH+QLXz52NjSRsgjmF1sj5t1xrDaikGq99XCstkWXXZK8wiWMBFD+WGD4JnTZPFkBlK8ixi8GEl3YePM7RESJ52Zf3t1++S7gYF9hXGRcLlU/3T94Ra/x6RoOBnsxXilHO+9VMGMJR9YlBsF/LSh7c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57202+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 1586505832013630.8906317999013; Fri, 10 Apr 2020 01:03:52 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Goj3YY1788612x8WHiKhGBHR; Fri, 10 Apr 2020 01:03:51 -0700 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.5127.1586505831145688170 for ; Fri, 10 Apr 2020 01:03:51 -0700 X-Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03A80iC9031877; Fri, 10 Apr 2020 08:03:50 GMT X-Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 30agqd97ta-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Apr 2020 08:03:50 +0000 X-Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 9B5AFA9; Fri, 10 Apr 2020 08:03:49 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id 266484E; Fri, 10 Apr 2020 08:03:47 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Gilbert Chen , Leif Lindholm , Zhichao Gao , Ray Ni Subject: [edk2-devel] [PATCH v1 1/3] MdeModulePkg/Logo Date: Fri, 10 Apr 2020 15:25:53 +0800 Message-Id: <20200410072555.7444-2-abner.chang@hpe.com> In-Reply-To: <20200410072555.7444-1-abner.chang@hpe.com> References: <20200410072555.7444-1-abner.chang@hpe.com> MIME-Version: 1.0 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: 4bj4tC3A3fcPui56XaFaFY5jx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1586505831; bh=9xULfUlB9VnAMRN1gkNpdotBM8wM2O2aPr5oySj6XlM=; h=Cc:Date:From:Reply-To:Subject:To; b=t11r0LfrRm+ak7+OMROfQuM2LYsEvGpuc0FYMiSNcDsoPtCDXdMhn1FMCZOJ+YwnzFP cXOEXYPzUPifi/13RlNa/gXKbqqqs5UAr6fsR7QBPbJeu/d/on2wRGtunpljW1BPmIaUu fbpJVQLNjqTaKoCI6+T3BzGbihAis1Sh2BQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Add RISCV64 Arch. Signed-off-by: Abner Chang Co-authored-by: Gilbert Chen Reviewed-by: Leif Lindholm Cc: Zhichao Gao Cc: Ray Ni Cc: Leif Lindholm Cc: Gilbert Chen --- MdeModulePkg/Logo/Logo.inf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Logo/Logo.inf b/MdeModulePkg/Logo/Logo.inf index 018202582e..70a66cae98 100644 --- a/MdeModulePkg/Logo/Logo.inf +++ b/MdeModulePkg/Logo/Logo.inf @@ -2,6 +2,8 @@ # The default logo bitmap picture shown on setup screen, which is corresp= onding to gEfiDefaultBmpLogoGuid. # # Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
+ # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -19,7 +21,7 @@ # # The following information is for reference only and not required by the = build tools. # -# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 +# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 RISCV64 # =20 [Binaries] --=20 2.25.0 -=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 (#57202): https://edk2.groups.io/g/devel/message/57202 Mute This Topic: https://groups.io/mt/72916398/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- From nobody Tue May 21 06:09:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+57203+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57203+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1586505833; cv=none; d=zohomail.com; s=zohoarc; b=b4F1GTGWAA0JvryEmp0Sg0A0qExTkbpGsS5tL03p8AQEIfBhl3lltALZmDUY2I3Iw4JJ/l4pSzr1dW6mkjOo3ffV5BsABW/9FeJIXoRpd/lhHnq7N6Aq7IW7J6dDtPUBygykDs1XP8QsyY9AUGliWG4MdqHK8eOu1gbXPw3sX40= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586505833; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Z8L4ZcV43OfXd6hIJ0oAEE6zHXeLMzwyB6tnmjQCmo4=; b=XhZBt9T3vLaIJVJ5CpmbrDVs64xqcoDtIbHq0gQSawPWuJZ0yGRVx9/5oZ58dF0spjsojsipeVBybLWOXREQJRthU64fQEeJn+eQav978ylgsd2mBmOzCGOVCCYihXlDrCGcfV/UeGFu0ZyzszMGVuZejVM/wVMBbksIVymw1Hw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57203+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 1586505833517285.6045401620612; Fri, 10 Apr 2020 01:03:53 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Rc2KYY1788612xIrsBHA5AMh; Fri, 10 Apr 2020 01:03:53 -0700 X-Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.5128.1586505832674095919 for ; Fri, 10 Apr 2020 01:03:52 -0700 X-Received: from pps.filterd (m0134425.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03A81mKp013259; Fri, 10 Apr 2020 08:03:52 GMT X-Received: from g4t3425.houston.hpe.com (g4t3425.houston.hpe.com [15.241.140.78]) by mx0b-002e3701.pphosted.com with ESMTP id 3091n0m3km-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Apr 2020 08:03:51 +0000 X-Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3425.houston.hpe.com (Postfix) with ESMTP id 60B63A1; Fri, 10 Apr 2020 08:03:51 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id ECFBD4D; Fri, 10 Apr 2020 08:03:49 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Gilbert Chen , Leif Lindholm , Hao A Wu , Liming Gao Subject: [edk2-devel] [PATCH v1 2/3] MdeModulePkg/CapsuleRuntimeDxe: Add RISCV64 arch. Date: Fri, 10 Apr 2020 15:25:54 +0800 Message-Id: <20200410072555.7444-3-abner.chang@hpe.com> In-Reply-To: <20200410072555.7444-1-abner.chang@hpe.com> References: <20200410072555.7444-1-abner.chang@hpe.com> MIME-Version: 1.0 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: QKDnnxhS1bmvIZweq8rgDS40x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1586505833; bh=mlKa4Z4+ZrskOmUpeROkg0B/c2fu3byZJ/rnl6RTKrU=; h=Cc:Date:From:Reply-To:Subject:To; b=s0wnzTnPdED3nLu2pvJkffFSQBfs1Qh5FJhOp6txkUW/X7TDb93HjIaTwBW+Ofg7TIF uCDy0powpyhnfV+a1hmvGgXgKnQRGF6z7O/Uqh61PMlq9tmAT4SgRucWcTxsIzKHzmFYV I2rZqN9HWGFgEH8TDjgaWIZidzMmek+8nH4= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Add RISC-V in INF for building CapsuleRuntimeDxe RISCV64 image. Signed-off-by: Abner Chang Co-authored-by: Gilbert Chen Reviewed-by: Leif Lindholm Cc: Hao A Wu Cc: Liming Gao Cc: Leif Lindholm Cc: Gilbert Chen --- .../Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf= b/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf index 942eda235c..8bf5035a69 100644 --- a/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf +++ b/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf @@ -5,6 +5,7 @@ # the capsule runtime services are ready. # # Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent # ## @@ -21,20 +22,20 @@ # # The following information is for reference only and not required by the = build tools. # -# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 +# VALID_ARCHITECTURES =3D IA32 X64 EBC ARM AARCH64 RISCV64 # =20 [Sources] CapsuleService.c CapsuleService.h =20 -[Sources.Ia32, Sources.EBC, Sources.ARM, Sources.AARCH64] +[Sources.Ia32, Sources.EBC, Sources.ARM, Sources.AARCH64, Sources.RISCV64] SaveLongModeContext.c =20 -[Sources.Ia32, Sources.X64, Sources.ARM, Sources.AARCH64] +[Sources.Ia32, Sources.X64, Sources.ARM, Sources.AARCH64, Sources.RISCV64] CapsuleCache.c =20 -[Sources.Ia32, Sources.X64, Sources.EBC] +[Sources.Ia32, Sources.X64, Sources.EBC, Sources.RISCV64] CapsuleReset.c =20 [Sources.ARM, Sources.AARCH64] --=20 2.25.0 -=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 (#57203): https://edk2.groups.io/g/devel/message/57203 Mute This Topic: https://groups.io/mt/72916400/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- From nobody Tue May 21 06:09:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+57204+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57204+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=hpe.com ARC-Seal: i=1; a=rsa-sha256; t=1586505836; cv=none; d=zohomail.com; s=zohoarc; b=fpM+YPmbArBNEj6rLKgeEJspDnBTmTDJD+qJUDYGvl3FAce3hmfd0aDJrIgn2956SL4Lcoz22ScfJKvj0Mvz+ShhuOrLCReEvNonnXvWEo7ThrQVf1YYkKYC2YtdE+a8MIG/RWkxpP4+1Om+Ugw1dyLsxMYTd9nx3FAq5XlK2eY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1586505836; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=akuZxzaqrtTyF8mBRgR1xjZV1HH3UgzRP24YGow39Co=; b=GqKnl1oz+FGo6BmZ9jfeXkgVXcT577NIUJeuipqy28+GfJlzefHBfRh9VvTGcN9RXSd1mkA7PFTWzeiHna+1I8GX/7QL1JjTDxqR0qRImkMRw/fZvHrV1TPaIMmAixe8EC+dKFe2kEY1niHKFC7X3mbu9TCPaFOXmYn6nAKY7Ws= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+57204+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 1586505836865613.8070499742561; Fri, 10 Apr 2020 01:03:56 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 4lbVYY1788612xrbm8j3HvHB; Fri, 10 Apr 2020 01:03:54 -0700 X-Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web12.5109.1586505834227605788 for ; Fri, 10 Apr 2020 01:03:54 -0700 X-Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03A80fRT015099; Fri, 10 Apr 2020 08:03:54 GMT X-Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 30a5ehx0nb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Apr 2020 08:03:53 +0000 X-Received: from g9t2301.houston.hpecorp.net (g9t2301.houston.hpecorp.net [16.220.97.129]) by g4t3426.houston.hpe.com (Postfix) with ESMTP id 2492454; Fri, 10 Apr 2020 08:03:53 +0000 (UTC) X-Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g9t2301.houston.hpecorp.net (Postfix) with ESMTP id B2FEA4D; Fri, 10 Apr 2020 08:03:51 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com, Gilbert Chen , Leif Lindholm , Dandan Bi , Liming Gao Subject: [edk2-devel] [PATCH v1 3/3] MdeModulePkg/DxeIplPeim : RISC-V platform level DxeIPL Date: Fri, 10 Apr 2020 15:25:55 +0800 Message-Id: <20200410072555.7444-4-abner.chang@hpe.com> In-Reply-To: <20200410072555.7444-1-abner.chang@hpe.com> References: <20200410072555.7444-1-abner.chang@hpe.com> MIME-Version: 1.0 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: iCTi5kUmZnT9DkL1N7FWlb8Cx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1586505834; bh=ruGSeFAkIeFZjaarNxqdPwR6C3msvIWRwfLWRjJSW6Y=; h=Cc:Date:From:Reply-To:Subject:To; b=ZvZ+jT/K1tzbaW526Dch08P1CnTE8UnjEfSLPyZcsQkdORuLO6eBr5ZDpmAWE+dcZVq Kfu5LaV4D5uM20wOtywkY8ekgndokXDNpwmW+x3UkEvyaqngShgyjzukD1FL7JQxYx0Sm gng8INpJ6vP7LREJfhxq0aXlV6O2bFD5X9I= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" Implementation of RISC-V DxeIPL. Signed-off-by: Abner Chang Co-authored-by: Gilbert Chen Reviewed-by: Leif Lindholm Cc: Dandan Bi Cc: Liming Gao Cc: Leif Lindholm Cc: Gilbert Chen --- MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 6 +- .../Core/DxeIplPeim/RiscV64/DxeLoadFunc.c | 80 +++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 MdeModulePkg/Core/DxeIplPeim/RiscV64/DxeLoadFunc.c diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf b/MdeModulePkg/Core/Dx= eIplPeim/DxeIpl.inf index 98bc17fc9d..3f17028546 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf +++ b/MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf @@ -7,6 +7,7 @@ # # Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -25,7 +26,7 @@ # # The following information is for reference only and not required by the = build tools. # -# VALID_ARCHITECTURES =3D IA32 X64 EBC (EBC is for build only) = AARCH64 +# VALID_ARCHITECTURES =3D IA32 X64 EBC (EBC is for build only) = AARCH64 RISCV64 # =20 [Sources] @@ -49,6 +50,9 @@ [Sources.ARM, Sources.AARCH64] Arm/DxeLoadFunc.c =20 +[Sources.RISCV64] + RiscV64/DxeLoadFunc.c + [Packages] MdePkg/MdePkg.dec MdeModulePkg/MdeModulePkg.dec diff --git a/MdeModulePkg/Core/DxeIplPeim/RiscV64/DxeLoadFunc.c b/MdeModule= Pkg/Core/DxeIplPeim/RiscV64/DxeLoadFunc.c new file mode 100644 index 0000000000..051d11de25 --- /dev/null +++ b/MdeModulePkg/Core/DxeIplPeim/RiscV64/DxeLoadFunc.c @@ -0,0 +1,80 @@ +/** @file + RISC-V specific functionality for DxeLoad. + + Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s reserved.
+ + SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include "DxeIpl.h" + +typedef +VOID* +(EFIAPI *DXEENTRYPOINT) ( + IN VOID *HobStart + ); + +/** + Transfers control to DxeCore. + + This function performs a CPU architecture specific operations to execute + the entry point of DxeCore with the parameters of HobList. + It also installs EFI_END_OF_PEI_PPI to signal the end of PEI phase. + + @param DxeCoreEntryPoint The entry point of DxeCore. + @param HobList The start of HobList passed to DxeCore. + +**/ +VOID +HandOffToDxeCore ( + IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint, + IN EFI_PEI_HOB_POINTERS HobList + ) +{ + VOID *BaseOfStack; + VOID *TopOfStack; + EFI_STATUS Status; + // + // + // Allocate 128KB for the Stack + // + BaseOfStack =3D AllocatePages (EFI_SIZE_TO_PAGES (STACK_SIZE)); + if (BaseOfStack =3D=3D NULL) { + DEBUG((DEBUG_ERROR, "%a: Can't allocate memory for stack.", __FUNCTION= __)); + ASSERT(FALSE); + } + + // + // Compute the top of the stack we were allocated. Pre-allocate a UINTN + // for safety. + // + TopOfStack =3D (VOID *)((UINTN) BaseOfStack + EFI_SIZE_TO_PAGES (STACK_S= IZE) * EFI_PAGE_SIZE - CPU_STACK_ALIGNMENT); + TopOfStack =3D ALIGN_POINTER (TopOfStack, CPU_STACK_ALIGNMENT); + + // + // End of PEI phase signal + // + Status =3D PeiServicesInstallPpi (&gEndOfPeiSignalPpi); + if (EFI_ERROR (Status)) { + DEBUG((DEBUG_ERROR, "%a: Fail to signal End of PEI event.", __FUNCTION= __)); + ASSERT(FALSE); + } + // + // Update the contents of BSP stack HOB to reflect the real stack info p= assed to DxeCore. + // + UpdateStackHob ((EFI_PHYSICAL_ADDRESS)(UINTN) BaseOfStack, STACK_SIZE); + + DEBUG ((DEBUG_INFO, "DXE Core new stack at %x, stack pointer at %x\n", B= aseOfStack, TopOfStack)); + + // + // Transfer the control to the entry point of DxeCore. + // + SwitchStack ( + (SWITCH_STACK_ENTRY_POINT)(UINTN)DxeCoreEntryPoint, + HobList.Raw, + NULL, + TopOfStack + ); +} + --=20 2.25.0 -=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 (#57204): https://edk2.groups.io/g/devel/message/57204 Mute This Topic: https://groups.io/mt/72916401/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-