From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web11.4990.1634615366619546681 for ; Mon, 18 Oct 2021 20:49:34 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=Gv0x4Deq; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=092675a635=daniel.schaefer@hpe.com) Received: from pps.filterd (m0134420.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 19ILhXnu030099; Tue, 19 Oct 2021 03:49:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=pps0720; bh=TzXcKqc9waPebUymxomcJmrUGVIRGFWYt0dYob0QnRw=; b=Gv0x4DeqkKsXQzeDtj9ku00lhg+h9qulkTNmCC0cISC8Oy7KeCezZjCvjcUAAPoNyCMF m0vbONFJBol8aVSIGbdTlx4dGhnHsllq1t5YUFVwmd5e7BzzcHzUkFjbHBWaULH4eGII wU2UEnbxXgaLQfd1epnjIXipLPjSCX4fV4zip5p3jTh8xCMbYnjSW0VFgDqt6hkCM4Hh R/SxgfJ1rQj8yavCtgtrCxskHS9f4LcXEXaMDPM7p3WAHEgwikajMvkNrEL/QusU4x5+ 34P8fKCALdugbEkkG+eokQn4JGgoe6QKGU+ep6fO9V5gublsAj8tM5j45IQ0S2Bc35Bm 7Q== Received: from g4t3426.houston.hpe.com (g4t3426.houston.hpe.com [15.241.140.75]) by mx0b-002e3701.pphosted.com with ESMTP id 3bseymjj0b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Oct 2021 03:49:26 +0000 Received: from G2W6310.americas.hpqcorp.net (g2w6310.austin.hp.com [16.197.64.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3426.houston.hpe.com (Postfix) with ESMTPS id 665185A; Tue, 19 Oct 2021 03:49:25 +0000 (UTC) Received: from G1W8108.americas.hpqcorp.net (2002:10c1:483c::10c1:483c) by G2W6310.americas.hpqcorp.net (2002:10c5:4034::10c5:4034) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 19 Oct 2021 03:49:25 +0000 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (15.241.52.11) by G1W8108.americas.hpqcorp.net (16.193.72.60) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Tue, 19 Oct 2021 03:49:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IvhohDm6u1SPF6dwQd7p1quM5X08/soEqFIzA9MGe1cLCNkmcLyyGKUeMPNBTOCmi42YhS6VSIkllMvKD5QuFq9ooosgcItLtvFa6an8kiguhH2YYNIuwMdA7JRatJNniaKn5BIMkffcpgvgdDU5DWBXBHt+rRR+AFLSrwPIRER7Tojx3HyTaA1qpxESXapRgI+6CNIm7bLnB6ZgXhGHDHvosI3R8RVA6ADGoKeUCidPwzbz3znl9HcwM5f1y/z/6ESwkmf9fDc/OmV1gJJVRCJa/JU8totP+TRWYtSovwhNoLW8V0GyD17rHa2MyvtleZ64UBVhgb+o+ZFY3RnWCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TzXcKqc9waPebUymxomcJmrUGVIRGFWYt0dYob0QnRw=; b=Eoc+DpW/AjZdPzp7pyUggzNPRecIBWw0hgKfUkjpMbi+u9TlVXpCJ+fWZW1Gt+D2rBx2uHKmuy7ThRa8r/wGf5rZVGsW/E0NxE5ILzDAVdt1ivTHI2Js9yUq/IriGp1dfLsVwzjgRzyCgqXJro0wNGgBvxJCWP0cYay3YjU4w6sc0jQHh0uSohhzpMd9+NpGqoLf8QZQW8CiMDYebNsHoBXzUcYT9C2K/EY+G06vke7VeJ4EsoQiRulde2ImnH2kF7vgDz9bY1NdSLkOjTofDj8JwOGGh9Ts1yX2ISRO2T5i/iYb5Zs0cASHHUngOWmZne0KRcgQPZr83yUCd60ZYA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; Received: from DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) by DF4PR8401MB1321.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7613::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.18; Tue, 19 Oct 2021 03:49:24 +0000 Received: from DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM ([fe80::597f:4786:f1d6:8469]) by DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM ([fe80::597f:4786:f1d6:8469%3]) with mapi id 15.20.4608.018; Tue, 19 Oct 2021 03:49:24 +0000 From: "Daniel Schaefer" To: CC: Abner Chang , Sunil V L , Daniel Schaefer Subject: [edk2-platforms] [PATCH v3 06/14] SiFive/U5SeriesPkg: Use FirmwareContext library Date: Tue, 19 Oct 2021 11:48:41 +0800 Message-ID: <20211019034849.16847-7-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211019034849.16847-1-daniel.schaefer@hpe.com> References: <20211019034849.16847-1-daniel.schaefer@hpe.com> X-ClientProxiedBy: SG2PR03CA0134.apcprd03.prod.outlook.com (2603:1096:4:c8::7) To DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) MIME-Version: 1.0 Received: from zbook-nix.wireless.hpe.com (15.211.146.34) by SG2PR03CA0134.apcprd03.prod.outlook.com (2603:1096:4:c8::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.11 via Frontend Transport; Tue, 19 Oct 2021 03:49:22 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17feb622-d075-4188-950d-08d992b370c5 X-MS-TrafficTypeDiagnostic: DF4PR8401MB1321: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1060; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BAhl5wKrWaxrUE4/fr1BVgMb4OaxoNi5Yuks6BD/BflQJ4E3oQ0LMIRHOunwynnJOJ0RnJMSguKmCdE2dlnl6hUwrBL2P5oB6BXMcz7gYf+VrARSsrhQlDDRWClV8bX9wAa+4S4OYQefzHL4t8OHYWy4GGa6yxTtkO2dcpYW+m7eWyEzhkr3BpshJEaOad/Xda5DqFwQfmtLaIs2JvFWXexK+KdO6Ik7MDpAtiBMe4Xrd7QBGMzHPT9i6GWLuHzADOaQdSC+/R36otpv/ZtYtCUMA9XjokRSppAxYOpkp/j53b3zo1e4F3ehapK/bqK2DR3WJ7Ivgr5B+hTnJmt7EiBwKOZ1AMySb7BbuXlEAibSMgb/ZwEA882lh4RBeehnueSBPAtyXIBHgk8xtt4orIxqC4If2PsfgBrE/LCV7TxKPXutlzigU9EC4/e0CM40vK8ax2Jooe8NlvS8fDLs3thKxe5IlmnOYKc31VwWapztbyVSI4WFPHNWXseIYKCjENHR/kR0heA2wqFnQllJO9yTGsFg0PnnFyxooYGzomoz6ahsMeMz9zBqcXTqM+1xaLQDf5ZfZT2CjuJ9SfeI7quxmmVew/oS3kwXXzcIULjYjqtc80bRohazohb4Ax5shQUtI//C1D5OVbFDnDV1kPdf3sdCXz+VN9YXuJAtN+4UX4JoEGD78l125UwdShQBhX+iimWbaA3m/wNrjx4JcQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(6029001)(366004)(1076003)(6486002)(36756003)(44832011)(316002)(5660300002)(6916009)(8936002)(6666004)(2906002)(26005)(54906003)(38100700002)(38350700002)(2616005)(956004)(86362001)(52116002)(7696005)(8676002)(66476007)(4326008)(508600001)(66556008)(186003)(82960400001)(66946007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1i7QusvSXeJj3kQMTgJfyq+1ViQ6GsOMGMfQ7utgUF0lgd27JNuBSc3VppBt?= =?us-ascii?Q?GtQdMq+RoZpdeZ81/oBRQLtiqDVH3ECUnC/LRRiICr60ctHkbdkd9zlQ1BGl?= =?us-ascii?Q?urQS1GONlCR+E+TsmA0eLoxdcvOKyhRPtIT6UJ4qDjXdevZVmXsHxSumuObW?= =?us-ascii?Q?QiUHY2Wb4r19bXQJiVG83/31xTEnVgHsWKpARUZB6V+FtPwOqQseLLWC08lU?= =?us-ascii?Q?jxurhbJXqYAROJVKfAqyRkLjgl8+3QTdYsWrBJztHD4JrCkY8Gr6fjU3pU6B?= =?us-ascii?Q?lxIcpoqnedawNu27H8QKJDPqqAleZMKZkYUc8Tnxk+PlDZA1vN4TUMO63DBC?= =?us-ascii?Q?S7tTlStO7Ua3WpPS0fP19yoMPuw/It13tzXMUZFjR8oa2dKT8O4L4PbAdc/n?= =?us-ascii?Q?lIo8ZF5/RTmfT1ykEDmCrFQ3Iuc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kghEBTIH1uA4DRCHWaAEzJdJ?= X-MS-Exchange-CrossTenant-Network-Message-Id: 17feb622-d075-4188-950d-08d992b370c5 X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2021 03:49:24.0243 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Q3P7oxsN3Dm3wjBO/6lM+V0Fv9ixR1gq/UfD+fsd+8+gVd0LqtKHuApVNSQS+cLTCAUzoZZWNKlJOKksLQErpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB1321 X-OriginatorOrg: hpe.com X-Proofpoint-ORIG-GUID: 0AqwGXowUcC79KZwkWdvDngVpb3yhTSw X-Proofpoint-GUID: 0AqwGXowUcC79KZwkWdvDngVpb3yhTSw X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.0.607.475 definitions=2021-10-18_07,2021-10-18_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 mlxscore=0 suspectscore=0 impostorscore=0 mlxlogscore=955 phishscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110190019 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Abner Chang Use RISC-V FirmwareContext library to set and get the pointer of PeiService on SiFive U5 series platforms. Cc: Sunil V L Cc: Daniel Schaefer Reviewed-by: Daniel Schaefer Signed-off-by: Abner Chang --- Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U5= 40.dsc b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.d= sc index 18a99b86d849..2b00176c27a0 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc @@ -174,6 +174,7 @@ [LibraryClasses.common.PEI_CORE]=0D HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf=0D PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServic= esTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf=0D + RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwar= eContextSscratchLib/RiscVFirmwareContextSscratchLib.inf=0D PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf=0D MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf=0D PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf= =0D @@ -190,6 +191,7 @@ [LibraryClasses.common.PEIM]=0D HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf=0D PeiServicesTablePointerLib|Silicon/RISC-V/ProcessorPkg/Library/PeiServic= esTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSbi.inf=0D + RiscVFirmwareContextLib|Silicon/RISC-V/ProcessorPkg/Library/RiscVFirmwar= eContextSscratchLib/RiscVFirmwareContextSscratchLib.inf=0D PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf=0D MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAlloc= ationLib.inf=0D PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf=0D --=20 2.31.1