From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web10.10791.1633521442732113372 for ; Wed, 06 Oct 2021 04:57:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=bcEPn6l6; spf=temperror, err=temporary DNS error (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=0913d10296=daniel.schaefer@hpe.com) Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1967GBcu024375; Wed, 6 Oct 2021 11:57:22 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=4vMRxkUditrRc+UewkrDfn5+G+P9uUq9lXaxe+DfAqA=; b=bcEPn6l6LqTKWu1N6vLo7GlykCXB0V2QEcdgYAff+LzbI+IN4UdxFPwf+GcFIGcOhf3a HhB6fZsquPUJNaoCj6Ga+nZ1oP/3MiVCKKBbabC5CeTFDdGcbCVsvyG0DrrTSE09gKiy BE6UzQDhMdq6mjd/Be05zx2CUmNQd7xgRLWqNlBUL2UX5fSwb+gQGGYI+oxNFAgT5jll leZcvC78szpZGxUeIswzE2ZJG78dz6cJehVtnqzukcYR3UQ5M2IkGXT/lsrGXzBlhSUP Tvag+C2mO4yIrRV4r86ESvynVsUKGHRr+b3dZvZp8RWFjIafXLCTIXAwLcismYeOqQWW GA== Received: from g9t5009.houston.hpe.com (g9t5009.houston.hpe.com [15.241.48.73]) by mx0b-002e3701.pphosted.com with ESMTP id 3bh78raejy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 06 Oct 2021 11:57:21 +0000 Received: from G4W9121.americas.hpqcorp.net (g4w9121.houston.hp.com [16.210.21.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g9t5009.houston.hpe.com (Postfix) with ESMTPS id 1A41D65; Wed, 6 Oct 2021 11:57:21 +0000 (UTC) Received: from G1W8107.americas.hpqcorp.net (2002:10c1:483b::10c1:483b) by G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 6 Oct 2021 11:57:21 +0000 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (15.241.52.11) by G1W8107.americas.hpqcorp.net (16.193.72.59) with Microsoft SMTP Server (TLS) id 15.0.1497.23 via Frontend Transport; Wed, 6 Oct 2021 11:57:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aQo7lfsJWRtOlkt1Yxm1oqzmCsqtORe+XZX0uGyI2thgQQc4rdoOcO4WuCKGLJHgWViegQ1ltvKayt60AGEY7sfBxoEr8voKNnO0Dmnj2EguMFUmao8j9dVKNoJWMlZnsPJZA2Pex070PQUwMFivknSVVyyRbxWl8j1xsk9QOcKTVCVZiP96dSqGyLoEiHGGrEdXV5OZ6Y9Eh38wW7WCjPMhGVzhcdppVdtGkIK4/XbHkRjRdBVO1qaqQcdLn0Yvl1RaU5/9pW+7+EaqMuOps0ca8FzwbJLyzUnx/slrG3wbdC5S1Qp9ALkRw4wWzHO0WDTLCoa4ZvGhkW5MxUBYBg== 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=4vMRxkUditrRc+UewkrDfn5+G+P9uUq9lXaxe+DfAqA=; b=NB9T+4C44SVhfEca3JFXQ7wy3r2/f0KeSgJEjl0ySoFbYPqX4ZYsJgGhS/+FINaVXq+e9zNiZ0OL/Q3iWwdlCtQyUjjunrq9n/32qSwyQwCfUIj8Hn1ebI3qLnHtKWtLVtgGvN1sNZEMJ1ocaZaVRY2iaRRuW/OaE84jpfAsa+94+6ZUqD2sCwJAb3qkdFEok+R9Q2EWPkRqwSyA946KKE9YEl+nJdTO2oBfOXmlFkhOERKEAnUPqtkxfu5tNNkmjmnqx4sJ5VyqU5P4/XswWTZ7WkwyoqxofzhI7Cd3O40b1NgqZeziaKiJAO8bzl0r90+GyDEZKRp3KYHgLYk3oQ== 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 DF4PR8401MB0331.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7606::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.15; Wed, 6 Oct 2021 11:57:20 +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.4566.023; Wed, 6 Oct 2021 11:57:20 +0000 From: "Daniel Schaefer" To: CC: Sunil V L Subject: [edk2-platforms][PATCH v2 05/14] Silicon/RISC-V: PeiServiceTableLib uses RiscVFirmwareContextLib Date: Wed, 6 Oct 2021 19:56:43 +0800 Message-ID: <20211006115652.3635489-6-daniel.schaefer@hpe.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211006115652.3635489-1-daniel.schaefer@hpe.com> References: <20211006115652.3635489-1-daniel.schaefer@hpe.com> X-ClientProxiedBy: HK2PR0401CA0022.apcprd04.prod.outlook.com (2603:1096:202:2::32) To DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:760f::13) MIME-Version: 1.0 Received: from localhost.localdomain (123.193.59.220) by HK2PR0401CA0022.apcprd04.prod.outlook.com (2603:1096:202:2::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.17 via Frontend Transport; Wed, 6 Oct 2021 11:57:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 83d6b542-e51c-4a5f-0e1e-08d988c0732d X-MS-TrafficTypeDiagnostic: DF4PR8401MB0331: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bO6r5nCwhG1j8Mx9NMYRVWWYjCvyIyn3j3H3e+vQGVCy1ix7YD65DF6NLEo6mrNE0uVsoazBAzJhCQ5M34lhaa1gENcWXYkW2W4/8qHUHeGoStTLgYgascr/RS/Wq9waR1CcjooN0mDgbftHFHaiwoqukopsVyHtH+SwSV7kbonZ+pyE0VsP4ApZ16rCStfrhI5aadkvy5M7oQt3PMqm5ZyWobDs33F3LS0SBQakjQtCKHBu/4nHEkJQyhONVc3lIBTzlW11lwxyfRC4/32XiNGvSqaEf6hE8kqhZB+8jkV4YUDkBOuNagSpBdrkqWvNc9wZZHdZkfRRCVz31uGplDb1+5VCZoT4w8M7nX78ikyFywqBNDEbGmFNlbz3NYsyFlDENaJMbufAVW1wIl0RTjIcwB2Wvg9z62IkpO/B+gY4E48R3bOX4qMAFUR3yeHgaGF4okC5dgn2zbkz1xXRxD81HMSbv52jOU6reyasOV6tA5i5WIXhEqrOc21XZWgjmVoOTu99jESslShSSSbfGmN+rASZFSg23aOuH+E8AmH1J3ed20B+ividp2SX85XEkiXkaaQ1K2qVrTRytiZyS/V4hrBBmJxfJiiXjY8Uv+baVFJjos9ZCKD8ixQw4mHbYKzxPnB1QufFwAzBUP5dECU3gfp8oimBR/s8VgJ6IZajjufc+DySPkEloooOFm6I3IbZBISpD4+Ic8NR3QJFTJEDGSJPky6QAKbr8cA+cLw= 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:(366004)(2616005)(1076003)(8676002)(83380400001)(8936002)(38100700002)(44832011)(38350700002)(6916009)(2906002)(36756003)(5660300002)(508600001)(956004)(86362001)(316002)(186003)(66556008)(6486002)(66476007)(52116002)(6506007)(26005)(66946007)(6512007)(4326008)(6666004)(145603002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?XAYPoOH+P8mEAgqTJm5VCf5zwuKTtpqma+t3Pfk6y94qMU9MYou0Xp/DyGrW?= =?us-ascii?Q?3vxr3dKAytJT1zQfVWXX16CBwpsuA71SXFf9Y+vddXLjCWRoNDdOxQkNQYCg?= =?us-ascii?Q?D5+f6Ecf/w0Wev5oM6ZNlUoQK/UfPOaf/WiA1JodaIpQ30Bh592FQEhBBm2N?= =?us-ascii?Q?MWbIL5edIUyC9iU8KUNOpt71Az1ZMx0hzrGVq5q6eFv4aBLEvlx7EvZTG1aS?= =?us-ascii?Q?VkeKEBANtKydBdaXzYDWvOPiKqMzYFCdcA9sXYIZvYVPXsBQzFsa20AfBn9k?= =?us-ascii?Q?fabbKQYIrU9WbL17Z/aXhnvGnjiNltsYafdWToGQYEQ244WWeV2DF9/X78TN?= =?us-ascii?Q?s/EfGIbgnrvOUEnrcPl4OgHk3Hs4PTRwM0ZfUQt+Q8dTukFUDafnJXHngBxk?= =?us-ascii?Q?vuoRPpv5X1ApGfL8mazFrXoMhk1FWqvrQ7G2xfr7eQa0qGJDxVIsBCU3M/4c?= =?us-ascii?Q?bo8TTjRiFb5dsiIbXIxYTq+L9s4YkK4zoIzeLj1V2X9PecjHYsp24Ndzk7LA?= =?us-ascii?Q?CCbJUhMa6gnwqw8khs3qjV2HvvdF+KP6iZCoJT22jGTJB/GHQD6XpCKhfr0k?= =?us-ascii?Q?26FsHRl3w5/iWK/eMB9NustsTr8WLPWdv3Yhyvw1/SJWUh3IeDJh4678mM6i?= =?us-ascii?Q?j61qpV8pkOo8TT9Ykf55t1mlY0UyQM13e4CSptd5xtPk+L2iBGxHVeFaA/6O?= =?us-ascii?Q?og2vQVJp8RUw/9LvFeFqTrkclqXThv/DglM1VY02sstYA3a10PRLuBNs1v6D?= =?us-ascii?Q?cQY25SJnlepMLGo6j5DGWIuQz1o+Q+hN0VLtbuvxwiY+cq6vpZOnWyciC+ij?= =?us-ascii?Q?kToPmyQGe018+EF/mLTb0Wa1BoJWW/lLKn9PWbybUbBLTZvzsuPk7oqzns96?= =?us-ascii?Q?687AS4/mezTbqJxGzPJXjpRrkzoEyPU1THSLnugI4iltzjDOe9Kf4LC6CnOB?= =?us-ascii?Q?lB+7mAWKw6245XUi3UR1Rb00eXG4cicswUzvDb3m14lb4zK1MQWTBpyIw6BX?= =?us-ascii?Q?4/lNXJuAha67wVvufQIOYWnfaeMZy5wdF+b2qaprE95qxb6LQja9fA9MOhm+?= =?us-ascii?Q?Ke23eSrISHHhC/EjvJ8l4NJkwETzxpKMMcQr16CLWdSS9RUefcgMuSSQnhN2?= =?us-ascii?Q?dey90+DYAVrUqvwChk7WdVnB+CWG98dT5KjE4wzQb8U6mYwrijThjqkXAkTI?= =?us-ascii?Q?u2UZWOJ5DXDCusJOong0RzsnIcDMJE6D1OZ9iC6cgHmUZnjZfZeN1wxdiEEi?= =?us-ascii?Q?hR3vhYJHkabibl61KRW9E634PgHWUS9CDBeY/a2uytIUMz1SxodmTxSYvjph?= =?us-ascii?Q?d5OaPw2Cuo1bYfMcjmpxsR/C?= X-MS-Exchange-CrossTenant-Network-Message-Id: 83d6b542-e51c-4a5f-0e1e-08d988c0732d X-MS-Exchange-CrossTenant-AuthSource: DF4PR8401MB0923.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2021 11:57:19.8726 (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: xG4jfyba6TB4ykDxo5/4ORerYr+VYeRg9pfNcX9K96ORZYygqgQQF3cJUF3D/z3nmA2NDFKUrSmTNh3wH4W+rQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR8401MB0331 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: gQKkmcM8NtAfJFzS89ig_1sfNi-nuPtW X-Proofpoint-ORIG-GUID: gQKkmcM8NtAfJFzS89ig_1sfNi-nuPtW X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-10-06_02,2021-10-06_01,2020-04-07_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 phishscore=0 priorityscore=1501 clxscore=1015 spamscore=0 mlxlogscore=999 impostorscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110060075 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. Cc: Sunil V L Cc: Daniel Schaefer Signed-off-by: Abner Chang --- Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiS= ervicesTablePointerLibOpenSbi.inf | 4 ++-- Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi/PeiS= ervicesTablePointerOpenSbi.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLib= OpenSbi/PeiServicesTablePointerLibOpenSbi.inf b/Silicon/RISC-V/ProcessorPkg= /Library/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerLibOpenSb= i.inf index f23272016b..fa9fe78518 100644 --- a/Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi= /PeiServicesTablePointerLibOpenSbi.inf +++ b/Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi= /PeiServicesTablePointerLibOpenSbi.inf @@ -4,7 +4,7 @@ # PEI Services Table Pointer Library implementation that retrieves a poin= ter to the=0D # PEI Services Table from a RISC-V OpenSBI sbi_platform firmware context = structure.=0D #=0D -# Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D +# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D #=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D @@ -35,5 +35,5 @@ [LibraryClasses]=0D DebugLib=0D RiscVCpuLib=0D - RiscVEdk2SbiLib=0D + RiscVFirmwareContextLib=0D =0D diff --git a/Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLib= OpenSbi/PeiServicesTablePointerOpenSbi.c b/Silicon/RISC-V/ProcessorPkg/Libr= ary/PeiServicesTablePointerLibOpenSbi/PeiServicesTablePointerOpenSbi.c index 0c1473e932..9aa74b4f9f 100644 --- a/Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi= /PeiServicesTablePointerOpenSbi.c +++ b/Silicon/RISC-V/ProcessorPkg/Library/PeiServicesTablePointerLibOpenSbi= /PeiServicesTablePointerOpenSbi.c @@ -1,7 +1,7 @@ /** @file=0D PEI Services Table Pointer Library.=0D =0D - Copyright (c) 2019 - 2020, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
=0D + Copyright (c) 2019 - 2021, Hewlett Packard Enterprise Development LP. Al= l rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D **/=0D @@ -9,7 +9,7 @@ #include =0D #include =0D #include =0D -#include =0D +#include =0D #include =0D #include =0D #include =0D @@ -32,8 +32,8 @@ SetPeiServicesTablePointer ( )=0D {=0D EFI_RISCV_OPENSBI_FIRMWARE_CONTEXT *FirmwareContext;=0D - SbiGetFirmwareContext (&FirmwareContext);=0D =0D + GetFirmwareContextPointer (&FirmwareContext);=0D FirmwareContext->PeiServiceTable =3D (VOID *)(UINTN)PeiServicesTablePoin= ter;=0D =0D DEBUG ((DEBUG_INFO, "Set PEI Service 0x%x at OpenSBI Firmware Context at= 0x%x\n",=0D @@ -61,8 +61,8 @@ GetPeiServicesTablePointer ( )=0D {=0D EFI_RISCV_OPENSBI_FIRMWARE_CONTEXT *FirmwareContext;=0D - SbiGetFirmwareContext (&FirmwareContext);=0D =0D + GetFirmwareContextPointer (&FirmwareContext);=0D return (CONST EFI_PEI_SERVICES **)FirmwareContext->PeiServiceTable;=0D }=0D =0D --=20 2.33.0