From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 07D7C941C41 for ; Wed, 3 Apr 2024 21:20:02 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=RorczLFf5EVVfSEBTTA01vEtMlCfL1S3I01ln/FTJ6U=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1712179201; v=1; b=hMPiA9iegjPUbBqCT85qpvVa6WyE4v0mi6rzyjYX94izpzCQuh0qKBOBiG7Bb7xkAW2uz6Nl tfEWV4bxVTxbFN3ooD0gQZiJ1BuFduwCIa45Sr7BO4RjYZOgLtSCPa4JCpRy+VYxnGZdcMYxdjT oPN8J6JT3BC7JPdptEi+rDc+1ug0C+qP7eg7E+OaXgjEZuwTG6o3iKau8ycg1YTU6HLW2DEk1cB iK83IYwTKhSuy4GA/tudh9ClPOK7L7LzgLEtjtVCa9ELQTUercsEjvzfu9uk/CHOPgid2pbSXRI wuTBf5/Lade9vXwZbgm2zccuy5fOzeiZ9DU7IiD8c179w== X-Received: by 127.0.0.2 with SMTP id FtpUYY7687511xMsaP2JI3Mm; Wed, 03 Apr 2024 14:20:01 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.23740.1712179200453666606 for ; Wed, 03 Apr 2024 14:20:00 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 08D061684; Wed, 3 Apr 2024 14:20:31 -0700 (PDT) X-Received: from beelzebub.ast.arm.com (u203625-lin.austin.arm.com [10.118.28.39]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id DB5A83F7B4; Wed, 3 Apr 2024 14:19:59 -0700 (PDT) From: "Sam Kaynor" To: devel@edk2.groups.io Cc: Ray Ni , Zhichao Gao Subject: [edk2-devel] [PATCH v4 2/3] ShellPkg: UefiShellDebug1CommandsLib: Image Execution Table in Dmem.c Date: Wed, 3 Apr 2024 16:19:32 -0500 Message-Id: <20240403211933.1662236-3-Sam.Kaynor@arm.com> In-Reply-To: <20240403211933.1662236-1-Sam.Kaynor@arm.com> References: <20240403211933.1662236-1-Sam.Kaynor@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 03 Apr 2024 14:20:00 -0700 Resent-From: sam.kaynor@arm.com Reply-To: devel@edk2.groups.io,sam.kaynor@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: LHkNt1IzA2xaQZAGO2n9FCHsx7686176AA= Content-Transfer-Encoding: base64 X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=hMPiA9ie; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io UkVGOiBodHRwczovL2J1Z3ppbGxhLnRpYW5vY29yZS5vcmcvc2hvd19idWcuY2dpP2lkPTQzNTIK CkltcGxlbWVudGVkIGR1bXBpbmcgb2YgdGhlIEltYWdlIEV4ZWN1dGlvbiBUYWJsZSB1c2luZyBE bWVtLmMKCkNjOiBSYXkgTmkgPHJheS5uaUBpbnRlbC5jb20+CkNjOiBaaGljaGFvIEdhbyA8emhp Y2hhby5nYW9AaW50ZWwuY29tPgpTaWduZWQtb2ZmLWJ5OiBTYW0gS2F5bm9yIDxTYW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UYWJsZVB0cjsNCisgIEVGSV9JTUFHRV9FWEVD VVRJT05fSU5GTyAgICAgICAqSW5mb1B0cjsNCisgIFZPSUQgICAgICAgICAgICAgICAgICAgICAg ICAgICAqcHRyOw0KKyAgQ0hBUjE2ICAgICAgICAgICAgICAgICAgICAgICAgICpJbWFnZVBhdGg7 DQorICBDSEFSMTYgICAgICAgICAgICAgICAgICAgICAgICAgKkltYWdlTmFtZTsNCisgIFVJTlRO ICAgICAgICAgICAgICAgICAgICAgICAgICAqTnVtYmVyT2ZJbWFnZXM7DQorICBDSEFSMTYgICAg ICAgICAgICAgICAgICAgICAgICAgKkFjdGlvblR5cGU7DQorDQorICBFeGVjSW5mb1RhYmxlUHRy ID0gKEVGSV9JTUFHRV9FWEVDVVRJT05fSU5GT19UQUJMRSAqKUFkZHJlc3M7DQorDQorICBOdW1i ZXJPZkltYWdlcyA9ICZFeGVjSW5mb1RhYmxlUHRyLT5OdW1iZXJPZkltYWdlczsNCisNCisgIHB0 ciA9IChWT0lEICopKEV4ZWNJbmZvVGFibGVQdHIgKyAxKTsNCisNCisgIGZvciAoaW50IEltYWdl ID0gMDsgSW1hZ2UgPCAqTnVtYmVyT2ZJbWFnZXM7IEltYWdlKyssIHB0ciArPSBJbmZvUHRyLT5J bmZvU2l6ZSkgew0KKyAgICBJbmZvUHRyID0gcHRyOw0KKyAgICBJbWFnZVBhdGggPSAoQ0hBUjE2 KikoSW5mb1B0ciArIDEpOw0KKw0KKyAgICBHZXRCYXNlTmFtZShJbWFnZVBhdGgsJkltYWdlTmFt ZSk7DQorDQorICAgIHN3aXRjaChJbmZvUHRyLT5BY3Rpb24pIHsNCisgICAgICBjYXNlIEVGSV9J TUFHRV9FWEVDVVRJT05fQVVUSEVOVElDQVRJT046DQorICAgICAgICBBY3Rpb25UeXBlID0gTCJB VVRIRU5USUNBVElPTiI7DQorICAgICAgICBicmVhazsNCisgICAgICBjYXNlIEVGSV9JTUFHRV9F WEVDVVRJT05fQVVUSF9VTlRFU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ETUVN X0VSUl9OT1RfRk9VTkQgICAgI2xhbmd1YWdlIGVuLVVTICJcclxuJUglcyVOOiBUYWJsZSBhZGRy ZXNzIG5vdCBmb3VuZC5cclxuIg0KICNzdHJpbmcgU1RSX0RNRU1fRVJSX0dFVF9GQUlMICAgICAj bGFuZ3VhZ2UgZW4tVVMgIlxyXG4lSCVzJU46IFVuYWJsZSB0byBnZXQgdGFibGUgaW5mb3JtYXRp b24uXHJcbiINCiANCi0tIAoyLjM0LjEKCg== -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#117392): https://edk2.groups.io/g/devel/message/117392 Mute This Topic: https://groups.io/mt/105318208/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-