From nobody Tue Feb 10 09:59:31 2026 Delivered-To: importer@patchew.org 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+43937+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1563453121535937.9710821354565; Thu, 18 Jul 2019 05:32:01 -0700 (PDT) Return-Path: X-Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.55]) by groups.io with SMTP; Thu, 18 Jul 2019 05:32:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WZrvpGkTbRlcLvbx1qNMerOczRdfnkXpsT0Rq5tDp92T6JjoHRALD/Y81jz9K3jthfyNSil1ybjZy0i92PJrRufw5GvQD8uo5TyKexkm3ya0GVVmeVmsAHWS0DzR+EhRLj7dJOqJPw3rgLKkR1ReMgtOClW6CkRG34CnkevGCSmffeYvo7YmX25bNX+kehSYndFnLbApk4ED7GAucHrIzKZi61NNAj1JXF+itc/lOWuqbnQpa28FLOC8jTmoVSaka5Ffx+gS2nUruTCFXWgPIS8KDTD8QDnCZj/uu0ddV29Lvc43OYSkVmWeeK8aOm7HE6nfhB6Ib55gelxQnTZ9TQ== 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-SenderADCheck; bh=gtoe/8Eer41zMQbE12cgXWkt/E45M3JkVKMfEheKHxA=; b=D1LHIKhHRVN9J1GLBEVm+Hu084zxPcdY/SoU7BsgGOaUUmFhYZlZQQ6Q8hmW9E7qY+tlua9mTpDNDfpnf06A6SArcAGMEVMq9q6MjZqnRrtsxHqtsRGz3QmFpEftu6ZvlNUdizSBUQhZIqr1seRxFK0mh6OmoyYU1c4s8Ta7gQqF/K9ZXUFBjBvJHhW9FqH5I/gPqI2lkE49rt1Woyrwb1ammTbw1mLx2rtvW6btc4R1d3nrt20gFouSwZOFLrtx+kTiDaced3567IKkUocWXXla6zfhLHJwH0YjxNs8Pn6tRlOsd1SK8Hw7Fbp/C7+QOkPsxEG/I/WFGF+OAqVQjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=temperror (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com;dmarc=temperror action=none header.from=arm.com;dkim=none (message not signed);arc=none X-Received: from VE1PR08CA0028.eurprd08.prod.outlook.com (2603:10a6:803:104::41) by DB8PR08MB4956.eurprd08.prod.outlook.com (2603:10a6:10:e0::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.11; Thu, 18 Jul 2019 12:31:56 +0000 X-Received: from AM5EUR03FT020.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::200) by VE1PR08CA0028.outlook.office365.com (2603:10a6:803:104::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2073.14 via Frontend Transport; Thu, 18 Jul 2019 12:31:55 +0000 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+43937+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) X-Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT020.mail.protection.outlook.com (10.152.16.116) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2052.18 via Frontend Transport; Thu, 18 Jul 2019 12:31:54 +0000 X-Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Thu, 18 Jul 2019 12:31:51 +0000 X-Received: from E119924.Arm.com (10.1.199.124) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Thu, 18 Jul 2019 12:31:51 +0000 From: "Krzysztof Koch" To: CC: , , , , , Subject: [edk2-devel] [PATCH v1 3/6] ShellPkg: acpiview: RSDP: Make code consistent with other parsers Date: Thu, 18 Jul 2019 13:31:39 +0100 Message-ID: <20190718123142.5696-4-krzysztof.koch@arm.com> In-Reply-To: <20190718123142.5696-1-krzysztof.koch@arm.com> References: <20190718123142.5696-1-krzysztof.koch@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: abba7cbd-6716-4593-45e8-08d70b7bead1 X-MS-TrafficTypeDiagnostic: DB8PR08MB4956: X-Microsoft-Antispam-PRVS: NoDisclaimer: True X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: DA10viekm2nuSfDY0l28rbmHY/faU7bdO+kVkoIrnN7dauhq/IUrNR480sZ41tZoM6QEz2Oh7cRkyzdid+FashuwPz73sx0j4Jwo4xiBef49KNPqN6FTJwzsfiUJlUyBr7SNUzL6wBC89QcyLCYopjGfLhlTq9YgR3Pu9z3VMgtDG2YRiSJm6X9ksiSxUcC4a5s6dD4NHiZxv/M0LJtS2fUZ5f8qahQny12z75Dsb/3ib9cwroXSk7klf4ZSJDw/7yeMby8FZRNKw56tyec+QJ5iW9Cou5wcP7V19uctzO3PmhLP5fxAXY7rmpcihzU9yDxs97AUFC3uYscrRQ8Ep4mbfFOWIFr4E4wnUaahv6veYRcakbI73LaQadn8DJ+eBLDcdixMaDR8S09s/KiY9c+V6Msuy9ex2PXK5CaTrQQ= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2019 12:31:54.3369 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: abba7cbd-6716-4593-45e8-08d70b7bead1 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[40.67.248.234];Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4956 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,krzysztof.koch@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1563453120; bh=hrizKLewNmE4kpPJalMScONS2W6Y4xAx133yxL/lka8=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=DCsZw9gVoi6hvgVugtI8WCEiwSLAoG6Ca3axhus/7ZiIKBeVlQ98RklSwvelO1lKkmN ND2uWVPK9nP7B2dJNsE2XrGA/9iIGS3vO3OMbHQhDQfRFNYi9jIRjptSR82JjmoCqEq+I +m3SQkYeKz20DizcfPrjBwMoFUI2uX8xbpY= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" List ParseAcpi() function arguments one per line in order to make this function call consistent with ParseAcpi() calls in other ACPI table parsers. Also, notify the user that XsdtAddress value of 0 results in RSDP parsing being terminated and that the XSDT table will not be processed. This effectively means that no more ACPI tables will be parsed because of this RSDP table content error. Signed-off-by: Krzysztof Koch Reviewed-by: Alexei Fedorov --- Notes: v1: - minor code style enhancements [Krzysztof] ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c | 1= 1 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/Rsdp= Parser.c b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpPa= rser.c index 586de7cbfb12f856c0c735b6e295c1cc32eb2ceb..bceda91386b5c070b81b2beac83= e2a0102a9b64e 100644 --- a/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c +++ b/ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Rsdp/RsdpParser.c @@ -159,7 +159,14 @@ ParseAcpiRsdp ( VerifyChecksum (TRUE, Ptr, AcpiTableLength); } =20 - ParseAcpi (Trace, 0, "RSDP", Ptr, AcpiTableLength, PARSER_PARAMS (RsdpPa= rser)); + ParseAcpi ( + Trace, + 0, + "RSDP", + Ptr, + AcpiTableLength, + PARSER_PARAMS (RsdpParser) + ); =20 // This code currently supports parsing of XSDT table only // and does not parse the RSDT table. Platforms provide the @@ -167,7 +174,7 @@ ParseAcpiRsdp ( // Therefore the RSDT should not be used on ARM platforms. if ((*XsdtAddress) =3D=3D 0) { IncrementErrorCount (); - Print (L"ERROR: XSDT Pointer is not set.\n"); + Print (L"ERROR: XSDT Pointer is not set. RSDP parsing aborted.\n"); return; } =20 -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=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 (#43937): https://edk2.groups.io/g/devel/message/43937 Mute This Topic: https://groups.io/mt/32514381/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-